pub struct ConstructorCall<Name, Args> {
pub name: Name,
pub args: Args,
}Expand description
Calls a constructor with a name and arguments. Renders as new Name(Arg1, Arg2, Arg3, ...)
Fields§
§name: NameThe name of the class being constructed
args: ArgsThe arguments. Must be a sequence
Trait Implementations§
Source§impl<Name: Clone, Args: Clone> Clone for ConstructorCall<Name, Args>
impl<Name: Clone, Args: Clone> Clone for ConstructorCall<Name, Args>
Source§fn clone(&self) -> ConstructorCall<Name, Args>
fn clone(&self) -> ConstructorCall<Name, Args>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Name, Args> Freeze for ConstructorCall<Name, Args>
impl<Name, Args> RefUnwindSafe for ConstructorCall<Name, Args>where
Name: RefUnwindSafe,
Args: RefUnwindSafe,
impl<Name, Args> Send for ConstructorCall<Name, Args>
impl<Name, Args> Sync for ConstructorCall<Name, Args>
impl<Name, Args> Unpin for ConstructorCall<Name, Args>
impl<Name, Args> UnwindSafe for ConstructorCall<Name, Args>where
Name: UnwindSafe,
Args: UnwindSafe,
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