pub struct TupleSchema {
pub elements: Vec<SchemaNodeId>,
pub binding_style: Option<BindingStyle>,
}Expand description
Tuple type with fixed-length ordered elements
Spec: lines 465-468
@variants.tuple
elements = [.$types.type]
$ext-type.binding-style = .$types.binding-style (optional)Fields§
§elements: Vec<SchemaNodeId>Schema for each element by position
binding_style: Option<BindingStyle>Binding style for formatting
Trait Implementations§
Source§impl Clone for TupleSchema
impl Clone for TupleSchema
Source§fn clone(&self) -> TupleSchema
fn clone(&self) -> TupleSchema
Returns a duplicate 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 Debug for TupleSchema
impl Debug for TupleSchema
Source§impl PartialEq for TupleSchema
impl PartialEq for TupleSchema
impl StructuralPartialEq for TupleSchema
Auto Trait Implementations§
impl Freeze for TupleSchema
impl RefUnwindSafe for TupleSchema
impl Send for TupleSchema
impl Sync for TupleSchema
impl Unpin for TupleSchema
impl UnwindSafe for TupleSchema
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