Struct arithmetic_typing::ast::SliceAst
source · pub struct SliceAst<'a> {
pub element: Box<SpannedTypeAst<'a>>,
pub length: Spanned<'a, TupleLenAst>,
}
Expand description
Parsed slice type, such as [Num; N]
.
Fields§
§element: Box<SpannedTypeAst<'a>>
Element of this slice; for example, Num
in [Num; N]
.
length: Spanned<'a, TupleLenAst>
Length of this slice; for example, N
in [Num; N]
.
Trait Implementations§
source§impl<'a> PartialEq<SliceAst<'a>> for SliceAst<'a>
impl<'a> PartialEq<SliceAst<'a>> for SliceAst<'a>
impl<'a> StructuralPartialEq for SliceAst<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SliceAst<'a>
impl<'a> Send for SliceAst<'a>
impl<'a> Sync for SliceAst<'a>
impl<'a> Unpin for SliceAst<'a>
impl<'a> UnwindSafe for SliceAst<'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