pub struct StructCall<Name, Body> {
pub name: Name,
pub body: Body,
}Expand description
The construction or deconstruction of a struct.
When rendered, will use the format Name { Body }. Spaces will be added automatically.
This should not be used for tuple structs, for that see NamedTuple.
Fields§
§name: NameThe struct name. Must be writable.
If you are declaring a struct for the first time, you can use Parameterized in order to declare type variables.
body: BodyThe body. Must be writable.
It is suggested to use StructFields for multiple fields, or DeclareField for just one.
Trait Implementations§
Source§impl<Name: Clone, Body: Clone> Clone for StructCall<Name, Body>
impl<Name: Clone, Body: Clone> Clone for StructCall<Name, Body>
Source§fn clone(&self) -> StructCall<Name, Body>
fn clone(&self) -> StructCall<Name, Body>
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, Body> Freeze for StructCall<Name, Body>
impl<Name, Body> RefUnwindSafe for StructCall<Name, Body>where
Name: RefUnwindSafe,
Body: RefUnwindSafe,
impl<Name, Body> Send for StructCall<Name, Body>
impl<Name, Body> Sync for StructCall<Name, Body>
impl<Name, Body> Unpin for StructCall<Name, Body>
impl<Name, Body> UnwindSafe for StructCall<Name, Body>where
Name: UnwindSafe,
Body: 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