Enum gix_attributes::State
source · pub enum State {
Set,
Unset,
Value(Value),
Unspecified,
}
Expand description
The state an attribute can be in, owning the value.
Note that this doesn’t contain the name.
Variants§
Set
The attribute is listed, or has the special value ‘true’
Unset
The attribute has the special value ‘false’, or was prefixed with a -
sign.
Value(Value)
The attribute is set to the given value, which followed the =
sign.
Note that values can be empty.
Unspecified
The attribute isn’t mentioned with a given path or is explicitly set to Unspecified
using the !
sign.
Implementations§
Trait Implementations§
source§impl Ord for State
impl Ord for State
source§impl PartialEq<State> for State
impl PartialEq<State> for State
source§impl PartialOrd<State> for State
impl PartialOrd<State> for State
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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