pub struct Tuple {
pub entries: IndexMap<ValueContainer, ValueContainer>,
/* private fields */
}Fields§
§entries: IndexMap<ValueContainer, ValueContainer>Implementations§
Source§impl Tuple
impl Tuple
pub fn default() -> Self
pub fn new(entries: IndexMap<ValueContainer, ValueContainer>) -> Self
pub fn size(&self) -> usize
pub fn get(&self, key: &ValueContainer) -> Option<&ValueContainer>
pub fn at(&self, index: usize) -> Option<(&ValueContainer, &ValueContainer)>
pub fn insert<V: Into<ValueContainer>>(&mut self, value: V)
Trait Implementations§
Source§impl From<IndexMap<ValueContainer, ValueContainer>> for Tuple
impl From<IndexMap<ValueContainer, ValueContainer>> for Tuple
Source§fn from(map: IndexMap<ValueContainer, ValueContainer>) -> Self
fn from(map: IndexMap<ValueContainer, ValueContainer>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<(ValueContainer, ValueContainer)>> for Tuple
impl From<Vec<(ValueContainer, ValueContainer)>> for Tuple
Source§fn from(vec: Vec<(ValueContainer, ValueContainer)>) -> Self
fn from(vec: Vec<(ValueContainer, ValueContainer)>) -> Self
Converts to this type from the input type.
Source§impl<T> FromIterator<T> for Tuplewhere
T: Into<ValueContainer>,
impl<T> FromIterator<T> for Tuplewhere
T: Into<ValueContainer>,
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<'a> IntoIterator for &'a Tuple
impl<'a> IntoIterator for &'a Tuple
Source§type Item = (&'a ValueContainer, &'a ValueContainer)
type Item = (&'a ValueContainer, &'a ValueContainer)
The type of the elements being iterated over.
Source§type IntoIter = Iter<'a, ValueContainer, ValueContainer>
type IntoIter = Iter<'a, ValueContainer, ValueContainer>
Which kind of iterator are we turning this into?
Source§impl IntoIterator for Tuple
impl IntoIterator for Tuple
Source§type Item = (ValueContainer, ValueContainer)
type Item = (ValueContainer, ValueContainer)
The type of the elements being iterated over.
Source§type IntoIter = IntoIter<ValueContainer, ValueContainer>
type IntoIter = IntoIter<ValueContainer, ValueContainer>
Which kind of iterator are we turning this into?
Source§impl StructuralEq for Tuple
impl StructuralEq for Tuple
Source§fn structural_eq(&self, other: &Self) -> bool
fn structural_eq(&self, other: &Self) -> bool
Check if two values are equal, ignoring the type.
impl CoreValueTrait for Tuple
impl Eq for Tuple
impl StructuralPartialEq for Tuple
Auto Trait Implementations§
impl Freeze for Tuple
impl !RefUnwindSafe for Tuple
impl !Send for Tuple
impl !Sync for Tuple
impl Unpin for Tuple
impl !UnwindSafe for Tuple
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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