pub enum DeclarationConstructorInitializer<'tree> {
Arguments(Node<'tree>),
Expression(Node<'tree>),
Empty,
}Expand description
How a T var ...; declaration initializes its object.
Variants§
Arguments(Node<'tree>)
Direct initialization, T var(args) or T var{args}: the argument list
the declaration hands the constructor.
Expression(Node<'tree>)
Copy initialization from one expression, T var = expr, which supplies a
single constructor argument without spelling an argument list.
Empty
T var;, which names no constructor argument at all.
Auto Trait Implementations§
impl<'tree> Freeze for DeclarationConstructorInitializer<'tree>
impl<'tree> RefUnwindSafe for DeclarationConstructorInitializer<'tree>
impl<'tree> Send for DeclarationConstructorInitializer<'tree>
impl<'tree> Sync for DeclarationConstructorInitializer<'tree>
impl<'tree> Unpin for DeclarationConstructorInitializer<'tree>
impl<'tree> UnsafeUnpin for DeclarationConstructorInitializer<'tree>
impl<'tree> UnwindSafe for DeclarationConstructorInitializer<'tree>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more