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§
impl<'a> StructuralPartialEq for SliceAst<'a>
Auto Trait Implementations§
impl<'a> Freeze for SliceAst<'a>
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