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 for SliceAst<'a>
impl<'a> PartialEq for SliceAst<'a>
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
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
)