pub struct AssignmentRef<'a> {
pub name: NameRef<'a>,
pub state: StateRef<'a>,
}
Expand description
Holds validated attribute data as a reference
Fields§
§name: NameRef<'a>
The name of the attribute.
state: StateRef<'a>
The state of the attribute.
Implementations§
Source§impl<'a> AssignmentRef<'a>
impl<'a> AssignmentRef<'a>
Sourcepub fn to_owned(self) -> Assignment
pub fn to_owned(self) -> Assignment
Turn this reference into its owned counterpart.
Trait Implementations§
Source§impl<'a> Clone for AssignmentRef<'a>
impl<'a> Clone for AssignmentRef<'a>
Source§fn clone(&self) -> AssignmentRef<'a>
fn clone(&self) -> AssignmentRef<'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 AssignmentRef<'a>
impl<'a> Debug for AssignmentRef<'a>
Source§impl Display for AssignmentRef<'_>
impl Display for AssignmentRef<'_>
Source§impl<'a> From<AssignmentRef<'a>> for Assignment
impl<'a> From<AssignmentRef<'a>> for Assignment
Source§fn from(a: AssignmentRef<'a>) -> Self
fn from(a: AssignmentRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for AssignmentRef<'a>
impl<'a> Hash for AssignmentRef<'a>
Source§impl<'a> Ord for AssignmentRef<'a>
impl<'a> Ord for AssignmentRef<'a>
Source§fn cmp(&self, other: &AssignmentRef<'a>) -> Ordering
fn cmp(&self, other: &AssignmentRef<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for AssignmentRef<'a>
impl<'a> PartialEq for AssignmentRef<'a>
Source§impl<'a> PartialOrd for AssignmentRef<'a>
impl<'a> PartialOrd for AssignmentRef<'a>
impl<'a> Copy for AssignmentRef<'a>
impl<'a> Eq for AssignmentRef<'a>
impl<'a> StructuralPartialEq for AssignmentRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for AssignmentRef<'a>
impl<'a> RefUnwindSafe for AssignmentRef<'a>
impl<'a> Send for AssignmentRef<'a>
impl<'a> Sync for AssignmentRef<'a>
impl<'a> Unpin for AssignmentRef<'a>
impl<'a> UnwindSafe for AssignmentRef<'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