pub struct Bool;
Expand description
Trait Implementations§
Source§impl<'__expr, '__expr2> AsExpression<Bool> for &'__expr2 &'__expr bool
impl<'__expr, '__expr2> AsExpression<Bool> for &'__expr2 &'__expr bool
Source§type Expression = Bound<Bool, &'__expr2 &'__expr bool>
type Expression = Bound<Bool, &'__expr2 &'__expr bool>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Bool>>::Expression
fn as_expression(self) -> <Self as AsExpression<Bool>>::Expression
Perform the conversion
Source§impl<'__expr> AsExpression<Bool> for &'__expr bool
impl<'__expr> AsExpression<Bool> for &'__expr bool
Source§type Expression = Bound<Bool, &'__expr bool>
type Expression = Bound<Bool, &'__expr bool>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Bool>>::Expression
fn as_expression(self) -> <Self as AsExpression<Bool>>::Expression
Perform the conversion
Source§impl AsExpression<Bool> for bool
impl AsExpression<Bool> for bool
Source§type Expression = Bound<Bool, bool>
type Expression = Bound<Bool, bool>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Bool>>::Expression
fn as_expression(self) -> <Self as AsExpression<Bool>>::Expression
Perform the conversion
Source§impl HasSqlType<Bool> for Mysql
impl HasSqlType<Bool> for Mysql
Source§impl HasSqlType<Bool> for Pg
impl HasSqlType<Bool> for Pg
Source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
Source§impl HasSqlType<Bool> for Sqlite
impl HasSqlType<Bool> for Sqlite
Source§impl KnownCastSqlTypeName<Pg> for Bool
Available on crate feature postgres_backend
only.
impl KnownCastSqlTypeName<Pg> for Bool
Available on crate feature
postgres_backend
only.Source§const SQL_TYPE_NAME: &'static str = "bool"
const SQL_TYPE_NAME: &'static str = "bool"
What to write as
sql_type
in the CAST(expr AS sql_type)
SQL for
Self
Source§impl QueryId for Bool
impl QueryId for Bool
Source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read moreimpl BoolOrNullableBool for Bool
impl Copy for Bool
impl SingleValue for Bool
Auto Trait Implementations§
impl Freeze for Bool
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<ST, U, DB> CompatibleType<U, DB> for ST
impl<ST, U, DB> CompatibleType<U, DB> for ST
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoNotNullable for T
impl<T> IntoNotNullable for T
Source§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more