pub struct RangeImpl<T> { /* private fields */ }Expand description
Represents a generic range where some constraints can be defined using this range
Implementations
sourceimpl<T: PartialOrd> RangeImpl<T>
impl<T: PartialOrd> RangeImpl<T>
sourcepub fn range(
start: RangeBoundaryValue<T>,
end: RangeBoundaryValue<T>
) -> IonSchemaResult<Self>
pub fn range(
start: RangeBoundaryValue<T>,
end: RangeBoundaryValue<T>
) -> IonSchemaResult<Self>
Provides a way to generate generic range using the start and end values
sourceimpl<T: PartialOrd> RangeImpl<T>
impl<T: PartialOrd> RangeImpl<T>
pub fn new<S, E>(start: S, end: E) -> IonSchemaResult<Self>where
S: Into<RangeBoundaryValue<T>>,
E: Into<RangeBoundaryValue<T>>,
Trait Implementations
sourceimpl From<RangeImpl<Decimal>> for Range
impl From<RangeImpl<Decimal>> for Range
sourcefn from(value: DecimalRange) -> Self
fn from(value: DecimalRange) -> Self
Converts to this type from the input type.
sourceimpl From<RangeImpl<Integer>> for Range
impl From<RangeImpl<Integer>> for Range
sourcefn from(value: IntegerRange) -> Self
fn from(value: IntegerRange) -> Self
Converts to this type from the input type.
sourceimpl From<RangeImpl<Number>> for Range
impl From<RangeImpl<Number>> for Range
sourcefn from(value: NumberRange) -> Self
fn from(value: NumberRange) -> Self
Converts to this type from the input type.
sourceimpl From<RangeImpl<Timestamp>> for Range
impl From<RangeImpl<Timestamp>> for Range
sourcefn from(value: TimestampRange) -> Self
fn from(value: TimestampRange) -> Self
Converts to this type from the input type.
sourceimpl From<RangeImpl<TimestampPrecision>> for Range
impl From<RangeImpl<TimestampPrecision>> for Range
sourcefn from(value: TimestampPrecisionRange) -> Self
fn from(value: TimestampPrecisionRange) -> Self
Converts to this type from the input type.
sourceimpl From<RangeImpl<f64>> for Range
impl From<RangeImpl<f64>> for Range
sourcefn from(value: FloatRange) -> Self
fn from(value: FloatRange) -> Self
Converts to this type from the input type.
sourceimpl From<RangeImpl<usize>> for Range
impl From<RangeImpl<usize>> for Range
sourcefn from(value: NonNegativeIntegerRange) -> Self
fn from(value: NonNegativeIntegerRange) -> Self
Converts to this type from the input type.
sourceimpl<T: PartialEq> PartialEq<RangeImpl<T>> for RangeImpl<T>
impl<T: PartialEq> PartialEq<RangeImpl<T>> for RangeImpl<T>
sourceimpl TryFrom<&str> for RangeImpl<TimestampPrecision>
impl TryFrom<&str> for RangeImpl<TimestampPrecision>
Provides Range for given &str
impl<T> StructuralPartialEq for RangeImpl<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for RangeImpl<T>where
T: RefUnwindSafe,
impl<T> Send for RangeImpl<T>where
T: Send,
impl<T> Sync for RangeImpl<T>where
T: Sync,
impl<T> Unpin for RangeImpl<T>where
T: Unpin,
impl<T> UnwindSafe for RangeImpl<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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