pub struct Bool;
Expand description
The boolean SQL type.
On backends without a native boolean type, this is emulated with the smallest supported integer.
ToSql
impls
FromSql
impls
Trait Implementations
sourceimpl<'expr> AsExpression<Bool> for &'expr bool
impl<'expr> AsExpression<Bool> for &'expr bool
type Expression = Bound<Bool, Self>
type Expression = Bound<Bool, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'expr2, 'expr> AsExpression<Bool> for &'expr2 &'expr bool
impl<'expr2, 'expr> AsExpression<Bool> for &'expr2 &'expr bool
type Expression = Bound<Bool, Self>
type Expression = Bound<Bool, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Bool> for bool
impl AsExpression<Bool> for bool
type Expression = Bound<Bool, Self>
type Expression = Bound<Bool, Self>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl QueryId for Bool
impl QueryId for Bool
sourceconst HAS_STATIC_QUERY_ID: bool
const HAS_STATIC_QUERY_ID: bool
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl Copy for Bool
impl NotNull for Bool
impl SingleValue for Bool
Auto Trait Implementations
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoNullable for T where
T: NotNull,
impl<T> IntoNullable for T where
T: NotNull,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more