pub struct Tuple(pub Vec<String>);
Expand description
A tuple can contain multiple types in a sequence.
For example:
(string, float32)
This is useful in the context of an enum:
message OneOrTwoNumbers =
| One(float32)
| Two(float32, float32)
;
Tuple Fields§
§0: Vec<String>
Trait Implementations§
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<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