pub struct ExprIndex {
pub expr: Box<Expr>,
pub bracket_token: Bracket,
pub start: Option<Box<Expr>>,
pub colon_token: Option<Colon>,
pub end: Option<Box<Expr>>,
}
Expand description
A square bracketed indexing expression: vector[2]
.
Fields§
§expr: Box<Expr>
§bracket_token: Bracket
§start: Option<Box<Expr>>
§colon_token: Option<Colon>
§end: Option<Box<Expr>>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExprIndex
impl RefUnwindSafe for ExprIndex
impl !Send for ExprIndex
impl !Sync for ExprIndex
impl Unpin for ExprIndex
impl UnwindSafe for ExprIndex
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)