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 as AsExpression<Nullable<RangeBoundEnum>>>::Expression
fn as_expression( self, ) -> <Self as AsExpression<Nullable<RangeBoundEnum>>>::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 as AsExpression<Nullable<RangeBoundEnum>>>::Expression
fn as_expression( self, ) -> <Self as AsExpression<Nullable<RangeBoundEnum>>>::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 as AsExpression<RangeBoundEnum>>::Expression
fn as_expression(self) -> <Self as AsExpression<RangeBoundEnum>>::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 as AsExpression<RangeBoundEnum>>::Expression
fn as_expression(self) -> <Self as AsExpression<RangeBoundEnum>>::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§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.