pub struct Assignment {
pub name: String,
pub type: Option<Type>,
pub value: AssignmentRhs,
pub attributes: Vec<Attribute>,
}
Expand description
An assignment, defining a value.
Fields§
§name: String
The name of the value being defined by this assignment.
type: Option<Type>
The ascribed type, if any.
value: AssignmentRhs
The value being bound in this assignment.
attributes: Vec<Attribute>
Attributes describing data-flow facts known about this value.
Trait Implementations§
Source§impl Clone for Assignment
impl Clone for Assignment
Source§fn clone(&self) -> Assignment
fn clone(&self) -> Assignment
Returns a copy 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 moreSource§impl Debug for Assignment
impl Debug for Assignment
Source§impl From<Assignment> for Statement
impl From<Assignment> for Statement
Source§fn from(a: Assignment) -> Self
fn from(a: Assignment) -> Self
Converts to this type from the input type.
Source§impl Parse for Assignment
impl Parse for Assignment
Auto Trait Implementations§
impl Freeze for Assignment
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnwindSafe for Assignment
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)