Struct semantic_analyzer::ast::StructValue
source · pub struct StructValue<'a> {
pub name: ValueName<'a>,
pub attribute: ValueName<'a>,
}Expand description
StructValue struct value element of AST.
Used for expression value declaration. The basic entity is:
- value name
- value struct type attribute
Fields§
§name: ValueName<'a>Value name of struct typed value
attribute: ValueName<'a>Attribute name of struct typed value
Trait Implementations§
source§impl<'a> Clone for StructValue<'a>
impl<'a> Clone for StructValue<'a>
source§fn clone(&self) -> StructValue<'a>
fn clone(&self) -> StructValue<'a>
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<'a> Debug for StructValue<'a>
impl<'a> Debug for StructValue<'a>
source§impl From<StructValue<'_>> for StructValue
impl From<StructValue<'_>> for StructValue
source§fn from(value: StructValue<'_>) -> Self
fn from(value: StructValue<'_>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for StructValue<'a>
impl<'a> PartialEq for StructValue<'a>
source§fn eq(&self, other: &StructValue<'a>) -> bool
fn eq(&self, other: &StructValue<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for StructValue<'a>
impl<'a> StructuralEq for StructValue<'a>
impl<'a> StructuralPartialEq for StructValue<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StructValue<'a>
impl<'a> Send for StructValue<'a>
impl<'a> Sync for StructValue<'a>
impl<'a> Unpin for StructValue<'a>
impl<'a> UnwindSafe for StructValue<'a>
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