pub enum Designator {
Field(Ident),
Index(Expr),
Range(Expr, Expr),
}Expand description
A C99 designator.
Variants§
Field(Ident)
.name, and the pre-C99 name: GNU still accepts.
Index(Expr)
[expr]
Range(Expr, Expr)
[low ... high] — GNU’s range designator, which fills every element of
the range with the same value.
Trait Implementations§
Source§impl Clone for Designator
impl Clone for Designator
Source§impl Debug for Designator
impl Debug for Designator
Source§impl PartialEq for Designator
impl PartialEq for Designator
impl StructuralPartialEq for Designator
Auto Trait Implementations§
impl Freeze for Designator
impl RefUnwindSafe for Designator
impl Send for Designator
impl Sync for Designator
impl Unpin for Designator
impl UnsafeUnpin for Designator
impl UnwindSafe for Designator
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