pub struct Declarator {
pub target: Pattern,
pub init: Option<Box<Expr>>,
pub span: Span,
}Expand description
One pattern = init declarator.
Fields§
§target: PatternBound names.
init: Option<Box<Expr>>Initialiser.
span: SpanSource range.
Trait Implementations§
Source§impl Clone for Declarator
impl Clone for Declarator
Source§impl Debug for Declarator
impl Debug for Declarator
Source§impl PartialEq for Declarator
impl PartialEq for Declarator
impl StructuralPartialEq for Declarator
Auto Trait Implementations§
impl Forget for Declarator
impl Freeze for Declarator
impl Move for Declarator
impl RefUnwindSafe for Declarator
impl Send for Declarator
impl Sync for Declarator
impl Unpin for Declarator
impl UnsafeUnpin for Declarator
impl UnwindSafe for Declarator
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