pub enum IndexKey {
Int(i64),
Str(String),
Tuple(IndexTuple),
}Expand description
A serializable index key from a Set.
Variants§
Implementations§
Trait Implementations§
Source§impl<A, B, C, D> From<(A, B, C, D)> for IndexKey
impl<A, B, C, D> From<(A, B, C, D)> for IndexKey
Source§fn from(t: (A, B, C, D)) -> Self
fn from(t: (A, B, C, D)) -> Self
Converts to this type from the input type.
Source§impl FromIndexKey for IndexKey
impl FromIndexKey for IndexKey
fn from_index_key(k: &IndexKey) -> Self
Source§impl<'a> Index<&IndexKey> for IndexedVar<'a>
impl<'a> Index<&IndexKey> for IndexedVar<'a>
impl Eq for IndexKey
impl StructuralPartialEq for IndexKey
Auto Trait Implementations§
impl Freeze for IndexKey
impl RefUnwindSafe for IndexKey
impl Send for IndexKey
impl Sync for IndexKey
impl Unpin for IndexKey
impl UnsafeUnpin for IndexKey
impl UnwindSafe for IndexKey
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more