pub struct AllocationUsage {
pub name: String,
pub type_name: Option<String>,
pub source: Option<Node<Expression>>,
pub target: Option<Node<Expression>>,
pub body: DefinitionBody,
}Expand description
Allocation usage: allocation name (: type)? [allocate source to target]? body.
Fields§
§name: String§type_name: Option<String>§source: Option<Node<Expression>>§target: Option<Node<Expression>>§body: DefinitionBodyTrait Implementations§
Source§impl Clone for AllocationUsage
impl Clone for AllocationUsage
Source§fn clone(&self) -> AllocationUsage
fn clone(&self) -> AllocationUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationUsage
impl Debug for AllocationUsage
Source§impl PartialEq for AllocationUsage
impl PartialEq for AllocationUsage
Source§fn eq(&self, other: &AllocationUsage) -> bool
fn eq(&self, other: &AllocationUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AllocationUsage
impl StructuralPartialEq for AllocationUsage
Auto Trait Implementations§
impl Freeze for AllocationUsage
impl RefUnwindSafe for AllocationUsage
impl Send for AllocationUsage
impl Sync for AllocationUsage
impl Unpin for AllocationUsage
impl UnsafeUnpin for AllocationUsage
impl UnwindSafe for AllocationUsage
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