Enum diesel::pg::sql_types::RangeBound
source · pub enum RangeBound {
LowerBoundInclusiveUpperBoundInclusive,
LowerBoundInclusiveUpperBoundExclusive,
LowerBoundExclusiveUpperBoundInclusive,
LowerBoundExclusiveUpperBoundExclusive,
}
Available on crate feature
postgres_backend
only.Expand description
Represent postgres range bounds: ‘[]’, ‘(]’, ‘[)’, ‘()’, used in functions int4range, int8range, numrange, tsrange, tstzrange, daterange.
Variants§
LowerBoundInclusiveUpperBoundInclusive
postgres ‘[]’
LowerBoundInclusiveUpperBoundExclusive
postgres ‘[)’
LowerBoundExclusiveUpperBoundInclusive
postgres ‘(]’
LowerBoundExclusiveUpperBoundExclusive
postgres ‘()’
Trait Implementations§
source§impl<'__expr> AsExpression<Nullable<RangeBoundEnum>> for &'__expr RangeBound
impl<'__expr> AsExpression<Nullable<RangeBoundEnum>> for &'__expr RangeBound
source§type Expression = Bound<Nullable<RangeBoundEnum>, &'__expr RangeBound>
type Expression = Bound<Nullable<RangeBoundEnum>, &'__expr RangeBound>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Nullable<RangeBoundEnum>> for RangeBound
impl AsExpression<Nullable<RangeBoundEnum>> for RangeBound
source§type Expression = Bound<Nullable<RangeBoundEnum>, RangeBound>
type Expression = Bound<Nullable<RangeBoundEnum>, RangeBound>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'__expr> AsExpression<RangeBoundEnum> for &'__expr RangeBound
impl<'__expr> AsExpression<RangeBoundEnum> for &'__expr RangeBound
source§type Expression = Bound<RangeBoundEnum, &'__expr RangeBound>
type Expression = Bound<RangeBoundEnum, &'__expr RangeBound>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<RangeBoundEnum> for RangeBound
impl AsExpression<RangeBoundEnum> for RangeBound
source§type Expression = Bound<RangeBoundEnum, RangeBound>
type Expression = Bound<RangeBoundEnum, RangeBound>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl Clone for RangeBound
impl Clone for RangeBound
source§fn clone(&self) -> RangeBound
fn clone(&self) -> RangeBound
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RangeBound
impl Debug for RangeBound
source§impl<__DB> ToSql<Nullable<RangeBoundEnum>, __DB> for RangeBound
impl<__DB> ToSql<Nullable<RangeBoundEnum>, __DB> for RangeBound
source§impl ToSql<RangeBoundEnum, Pg> for RangeBound
impl ToSql<RangeBoundEnum, Pg> for RangeBound
impl Copy for RangeBound
Auto Trait Implementations§
impl Freeze for RangeBound
impl RefUnwindSafe for RangeBound
impl Send for RangeBound
impl Sync for RangeBound
impl Unpin for RangeBound
impl UnwindSafe for RangeBound
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<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>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
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)
Convert
&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)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.