Struct gix_attributes::AssignmentRef
source · 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
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
)