Struct arithmetic_typing::ast::TupleAst
source · pub struct TupleAst<'a> {
pub start: Vec<SpannedTypeAst<'a>>,
pub middle: Option<Spanned<'a, SliceAst<'a>>>,
pub end: Vec<SpannedTypeAst<'a>>,
}
Expand description
Parsed tuple type, such as (Num, Bool)
or (fn() -> Num, ...[Num; _])
.
Fields§
§start: Vec<SpannedTypeAst<'a>>
Elements at the beginning of the tuple, e.g., Num
and Bool
in (Num, Bool, ...[T; _])
.
middle: Option<Spanned<'a, SliceAst<'a>>>
Middle of the tuple, e.g., [T; _]
in (Num, Bool, ...[T; _])
.
end: Vec<SpannedTypeAst<'a>>
Elements at the end of the tuple, e.g., Bool
in (...[Num; _], Bool)
.
Guaranteed to be empty if middle
is not present.
Trait Implementations§
source§impl<'a> PartialEq for TupleAst<'a>
impl<'a> PartialEq for TupleAst<'a>
impl<'a> StructuralPartialEq for TupleAst<'a>
Auto Trait Implementations§
impl<'a> Freeze for TupleAst<'a>
impl<'a> RefUnwindSafe for TupleAst<'a>
impl<'a> Send for TupleAst<'a>
impl<'a> Sync for TupleAst<'a>
impl<'a> Unpin for TupleAst<'a>
impl<'a> UnwindSafe for TupleAst<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)