pub struct IntervalFrom<T> {
pub start: T,
}Expand description
An interval only bounded inclusively below (start..).
The IntervalFrom { start } contains all values with x >= start.
Fields§
§start: TThe lower bound of the interval (inclusive).
Trait Implementations§
Source§impl<T: Clone> Clone for IntervalFrom<T>
impl<T: Clone> Clone for IntervalFrom<T>
Source§fn clone(&self) -> IntervalFrom<T>
fn clone(&self) -> IntervalFrom<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for IntervalFrom<T>
Source§impl<T: Debug> Debug for IntervalFrom<T>
impl<T: Debug> Debug for IntervalFrom<T>
impl<T: Eq> Eq for IntervalFrom<T>
Source§impl<T> From<IntervalFrom<T>> for RangeFrom<T>
impl<T> From<IntervalFrom<T>> for RangeFrom<T>
Source§fn from(value: IntervalFrom<T>) -> Self
fn from(value: IntervalFrom<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<IntervalFrom<T>> for NonEmpty<IntervalFrom<T>>
impl<T> From<IntervalFrom<T>> for NonEmpty<IntervalFrom<T>>
Source§fn from(value: IntervalFrom<T>) -> Self
fn from(value: IntervalFrom<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<RangeFrom<T>> for IntervalFrom<T>
impl<T> From<RangeFrom<T>> for IntervalFrom<T>
Source§impl<T> FromIntervals<Interval<T>, IntervalFrom<T>> for Relation
impl<T> FromIntervals<Interval<T>, IntervalFrom<T>> for Relation
Source§fn from_intervals(
s: &NonEmpty<Interval<T>>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Self
fn from_intervals( s: &NonEmpty<Interval<T>>, t: &NonEmpty<IntervalFrom<T>>, ) -> Self
Creates a value from a pair of intervals.
Source§impl<T> FromIntervals<IntervalFrom<T>, Interval<T>> for Relation
impl<T> FromIntervals<IntervalFrom<T>, Interval<T>> for Relation
Source§fn from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<Interval<T>>,
) -> Self
fn from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<Interval<T>>, ) -> Self
Creates a value from a pair of intervals.
Source§impl<T> FromIntervals<IntervalFrom<T>, IntervalFrom<T>> for Relation
impl<T> FromIntervals<IntervalFrom<T>, IntervalFrom<T>> for Relation
Source§fn from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Self
fn from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<IntervalFrom<T>>, ) -> Self
Creates a value from a pair of intervals.
Source§impl<T> FromIntervals<IntervalFrom<T>, IntervalFull> for Relation
impl<T> FromIntervals<IntervalFrom<T>, IntervalFull> for Relation
Source§fn from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<IntervalFull>,
) -> Self
fn from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<IntervalFull>, ) -> Self
Creates a value from a pair of intervals.
Source§impl<T> FromIntervals<IntervalFrom<T>, IntervalTo<T>> for Relation
impl<T> FromIntervals<IntervalFrom<T>, IntervalTo<T>> for Relation
Source§fn from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<IntervalTo<T>>,
) -> Self
fn from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<IntervalTo<T>>, ) -> Self
Creates a value from a pair of intervals.
Source§impl<T> FromIntervals<IntervalFull, IntervalFrom<T>> for Relation
impl<T> FromIntervals<IntervalFull, IntervalFrom<T>> for Relation
Source§fn from_intervals(
s: &NonEmpty<IntervalFull>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Self
fn from_intervals( s: &NonEmpty<IntervalFull>, t: &NonEmpty<IntervalFrom<T>>, ) -> Self
Creates a value from a pair of intervals.
Source§impl<T> FromIntervals<IntervalTo<T>, IntervalFrom<T>> for Relation
impl<T> FromIntervals<IntervalTo<T>, IntervalFrom<T>> for Relation
Source§fn from_intervals(
s: &NonEmpty<IntervalTo<T>>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Self
fn from_intervals( s: &NonEmpty<IntervalTo<T>>, t: &NonEmpty<IntervalFrom<T>>, ) -> Self
Creates a value from a pair of intervals.
Source§impl<T: Hash> Hash for IntervalFrom<T>
impl<T: Hash> Hash for IntervalFrom<T>
Source§impl<T> IntervalBounds<T> for IntervalFrom<T>where
T: Copy,
impl<T> IntervalBounds<T> for IntervalFrom<T>where
T: Copy,
Source§impl<T: PartialEq> PartialEq for IntervalFrom<T>
impl<T: PartialEq> PartialEq for IntervalFrom<T>
Source§fn eq(&self, other: &IntervalFrom<T>) -> bool
fn eq(&self, other: &IntervalFrom<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for IntervalFrom<T>
Source§impl<T> TryFromIntervals<Interval<T>, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
impl<T> TryFromIntervals<Interval<T>, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
Source§fn try_from_intervals(
s: &NonEmpty<Interval<T>>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Result<Self, IntervalError>
fn try_from_intervals( s: &NonEmpty<Interval<T>>, t: &NonEmpty<IntervalFrom<T>>, ) -> Result<Self, IntervalError>
Creates a value from a pair of intervals.
Source§impl<T> TryFromIntervals<IntervalFrom<T>, Interval<T>> for Relationwhere
T: PartialOrd + Copy,
impl<T> TryFromIntervals<IntervalFrom<T>, Interval<T>> for Relationwhere
T: PartialOrd + Copy,
Source§fn try_from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<Interval<T>>,
) -> Result<Self, IntervalError>
fn try_from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<Interval<T>>, ) -> Result<Self, IntervalError>
Creates a value from a pair of intervals.
Source§impl<T> TryFromIntervals<IntervalFrom<T>, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
impl<T> TryFromIntervals<IntervalFrom<T>, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
Source§fn try_from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Result<Self, IntervalError>
fn try_from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<IntervalFrom<T>>, ) -> Result<Self, IntervalError>
Creates a value from a pair of intervals.
Source§impl<T> TryFromIntervals<IntervalFrom<T>, IntervalFull> for Relationwhere
T: PartialOrd + Copy,
impl<T> TryFromIntervals<IntervalFrom<T>, IntervalFull> for Relationwhere
T: PartialOrd + Copy,
Source§fn try_from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<IntervalFull>,
) -> Result<Self, IntervalError>
fn try_from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<IntervalFull>, ) -> Result<Self, IntervalError>
Creates a value from a pair of intervals.
Source§impl<T> TryFromIntervals<IntervalFrom<T>, IntervalTo<T>> for Relationwhere
T: PartialOrd + Copy,
impl<T> TryFromIntervals<IntervalFrom<T>, IntervalTo<T>> for Relationwhere
T: PartialOrd + Copy,
Source§fn try_from_intervals(
s: &NonEmpty<IntervalFrom<T>>,
t: &NonEmpty<IntervalTo<T>>,
) -> Result<Self, IntervalError>
fn try_from_intervals( s: &NonEmpty<IntervalFrom<T>>, t: &NonEmpty<IntervalTo<T>>, ) -> Result<Self, IntervalError>
Creates a value from a pair of intervals.
Source§impl<T> TryFromIntervals<IntervalFull, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
impl<T> TryFromIntervals<IntervalFull, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
Source§fn try_from_intervals(
s: &NonEmpty<IntervalFull>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Result<Self, IntervalError>
fn try_from_intervals( s: &NonEmpty<IntervalFull>, t: &NonEmpty<IntervalFrom<T>>, ) -> Result<Self, IntervalError>
Creates a value from a pair of intervals.
Source§impl<T> TryFromIntervals<IntervalTo<T>, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
impl<T> TryFromIntervals<IntervalTo<T>, IntervalFrom<T>> for Relationwhere
T: PartialOrd + Copy,
Source§fn try_from_intervals(
s: &NonEmpty<IntervalTo<T>>,
t: &NonEmpty<IntervalFrom<T>>,
) -> Result<Self, IntervalError>
fn try_from_intervals( s: &NonEmpty<IntervalTo<T>>, t: &NonEmpty<IntervalFrom<T>>, ) -> Result<Self, IntervalError>
Creates a value from a pair of intervals.
Auto Trait Implementations§
impl<T> Freeze for IntervalFrom<T>where
T: Freeze,
impl<T> RefUnwindSafe for IntervalFrom<T>where
T: RefUnwindSafe,
impl<T> Send for IntervalFrom<T>where
T: Send,
impl<T> Sync for IntervalFrom<T>where
T: Sync,
impl<T> Unpin for IntervalFrom<T>where
T: Unpin,
impl<T> UnsafeUnpin for IntervalFrom<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for IntervalFrom<T>where
T: UnwindSafe,
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