Enum lace::NameOrIndex
source · pub enum NameOrIndex {
Name(String),
Index(usize),
}
Expand description
Holds a String
name or a usize
index
Variants§
Trait Implementations§
source§impl Clone for NameOrIndex
impl Clone for NameOrIndex
source§fn clone(&self) -> NameOrIndex
fn clone(&self) -> NameOrIndex
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 ColumnIndex for &NameOrIndex
impl ColumnIndex for &NameOrIndex
source§impl ColumnIndex for NameOrIndex
impl ColumnIndex for NameOrIndex
source§impl Debug for NameOrIndex
impl Debug for NameOrIndex
source§impl<'de> Deserialize<'de> for NameOrIndex
impl<'de> Deserialize<'de> for NameOrIndex
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<String> for NameOrIndex
impl From<String> for NameOrIndex
source§impl From<usize> for NameOrIndex
impl From<usize> for NameOrIndex
source§impl Hash for NameOrIndex
impl Hash for NameOrIndex
source§impl Ord for NameOrIndex
impl Ord for NameOrIndex
source§fn cmp(&self, other: &NameOrIndex) -> Ordering
fn cmp(&self, other: &NameOrIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NameOrIndex
impl PartialEq for NameOrIndex
source§fn eq(&self, other: &NameOrIndex) -> bool
fn eq(&self, other: &NameOrIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NameOrIndex
impl PartialOrd for NameOrIndex
source§fn partial_cmp(&self, other: &NameOrIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &NameOrIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RowIndex for &NameOrIndex
impl RowIndex for &NameOrIndex
source§impl RowIndex for NameOrIndex
impl RowIndex for NameOrIndex
source§impl Serialize for NameOrIndex
impl Serialize for NameOrIndex
impl Eq for NameOrIndex
impl StructuralPartialEq for NameOrIndex
Auto Trait Implementations§
impl Freeze for NameOrIndex
impl RefUnwindSafe for NameOrIndex
impl Send for NameOrIndex
impl Sync for NameOrIndex
impl Unpin for NameOrIndex
impl UnwindSafe for NameOrIndex
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.