pub struct TupleType { /* private fields */ }Expand description
Describes the type of an ordered, unnamed sequence of heterogenously-typed values.
Implementations§
Source§impl TupleType
impl TupleType
Sourcepub fn new(
name: Option<TypeIdentifier>,
fields: impl IntoIterator<Item = ValueType>,
) -> Self
pub fn new( name: Option<TypeIdentifier>, fields: impl IntoIterator<Item = ValueType>, ) -> Self
Creates a tuple for the specified list of fields.
Sourcepub fn name(&self) -> Option<&TypeIdentifier>
pub fn name(&self) -> Option<&TypeIdentifier>
Gets the name of this type, if any.
Trait Implementations§
impl Eq for TupleType
Auto Trait Implementations§
impl Freeze for TupleType
impl !RefUnwindSafe for TupleType
impl Send for TupleType
impl Sync for TupleType
impl Unpin for TupleType
impl !UnwindSafe for TupleType
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<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.