Struct v9::id::IdRange [−][src]
This is an exclusive range, just like std::ops::Range
.
Fields
start: I
end: I
Implementations
impl<'a, I: Check> IdRange<'a, I>
[src]
pub fn step(&mut self) -> Option<I>
[src]
pub fn contains<'b, O>(&self, i: O) -> bool where
O: 'b + Check<M = I::M>,
[src]
O: 'b + Check<M = I::M>,
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn offset(&self, i: usize) -> Option<I>
[src]
pub fn inner_index<'b, O>(&self, i: O) -> Option<<I::M as TableMarker>::RawId> where
O: 'b + Check<M = I::M>,
[src]
O: 'b + Check<M = I::M>,
impl<M: TableMarker> IdRange<'static, Id<M>>
[src]
pub fn new(start: Id<M>, end: Id<M>) -> Self
[src]
pub fn on(id: Id<M>) -> Self
[src]
pub fn to(end: Id<M>) -> Self
[src]
pub fn empty() -> Self
[src]
pub fn iter(self) -> IdRangeIter<'static, Id<M>>ⓘNotable traits for IdRangeIter<'a, I>
impl<'a, I: Check> Iterator for IdRangeIter<'a, I> where
I: Clone, type Item = I;
[src]
Notable traits for IdRangeIter<'a, I>
impl<'a, I: Check> Iterator for IdRangeIter<'a, I> where
I: Clone, type Item = I;
If you want to iterate over a checked IdRange
, use table.ids().range()
.
impl<FM: TableMarker> IdRange<'static, Id<FM>>
[src]
pub fn __v9_link_foreign_table_name() -> Option<Name>
[src]
pub fn __v9_link_foreign_key<LM: TableMarker>(universe: &mut Universe)
[src]
Trait Implementations
impl<'a, I: Clone + Check> Clone for IdRange<'a, I>
[src]
impl<'a, I: Copy + Check> Copy for IdRange<'a, I>
[src]
impl<'a, I: Check> Debug for IdRange<'a, I>
[src]
impl<'de, 'a, I: Check> Deserialize<'de> for IdRange<'a, I> where
I: Serialize + DeserializeOwned,
[src]
I: Serialize + DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a, I: Eq + Check> Eq for IdRange<'a, I>
[src]
impl<'a, I: Check> IntoIterator for IdRange<'a, I>
[src]
type Item = I
The type of the elements being iterated over.
type IntoIter = IdRangeIter<'a, I>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, I: Ord + Check> Ord for IdRange<'a, I>
[src]
fn cmp(&self, other: &IdRange<'a, I>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'a, I: PartialEq + Check> PartialEq<IdRange<'a, I>> for IdRange<'a, I>
[src]
impl<'a, I: PartialOrd + Check> PartialOrd<IdRange<'a, I>> for IdRange<'a, I>
[src]
fn partial_cmp(&self, other: &IdRange<'a, I>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, I: Check> Serialize for IdRange<'a, I> where
I: Serialize + DeserializeOwned,
[src]
I: Serialize + DeserializeOwned,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a, I: Check> StructuralEq for IdRange<'a, I>
[src]
impl<'a, I: Check> StructuralPartialEq for IdRange<'a, I>
[src]
Auto Trait Implementations
impl<'a, I> RefUnwindSafe for IdRange<'a, I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<'a, I> Send for IdRange<'a, I> where
I: Send,
I: Send,
impl<'a, I> Sync for IdRange<'a, I> where
I: Sync,
I: Sync,
impl<'a, I> Unpin for IdRange<'a, I> where
I: Unpin,
I: Unpin,
impl<'a, I> UnwindSafe for IdRange<'a, I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<X> ForeignKey for X
[src]
fn __v9_link_foreign_table_name() -> Option<Name>
[src]
fn __v9_link_foreign_key<LM: TableMarker>(_universe: &mut Universe)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,