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<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for State
impl Ord for State
source§impl PartialOrd for State
impl PartialOrd for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
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
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
)