pub enum NameValue {
Name(NameBuf),
NCName(NCNameBuf),
Id(IdBuf),
IdRef(IdRefBuf),
}
Expand description
Any specialized Name
value.
Variants§
Implementations§
Trait Implementations§
Source§impl From<NCNameValue> for NameValue
impl From<NCNameValue> for NameValue
Source§fn from(value: NCNameValue) -> Self
fn from(value: NCNameValue) -> Self
Converts to this type from the input type.
Source§impl From<NameValue> for NormalizedStringValue
impl From<NameValue> for NormalizedStringValue
Source§impl From<NameValue> for StringValue
impl From<NameValue> for StringValue
Source§impl From<NameValue> for TokenValue
impl From<NameValue> for TokenValue
Source§impl TryFrom<NameValue> for NCNameValue
impl TryFrom<NameValue> for NCNameValue
Source§impl TryFrom<NormalizedStringValue> for NameValue
impl TryFrom<NormalizedStringValue> for NameValue
Source§type Error = NormalizedStringValue
type Error = NormalizedStringValue
The type returned in the event of a conversion error.
Source§fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
fn try_from(value: NormalizedStringValue) -> Result<Self, NormalizedStringValue>
Performs the conversion.
Source§impl TryFrom<StringValue> for NameValue
impl TryFrom<StringValue> for NameValue
Source§type Error = StringValue
type Error = StringValue
The type returned in the event of a conversion error.
Source§fn try_from(value: StringValue) -> Result<Self, StringValue>
fn try_from(value: StringValue) -> Result<Self, StringValue>
Performs the conversion.
Source§impl TryFrom<TokenValue> for NameValue
impl TryFrom<TokenValue> for NameValue
Source§type Error = TokenValue
type Error = TokenValue
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenValue) -> Result<Self, TokenValue>
fn try_from(value: TokenValue) -> Result<Self, TokenValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NameValue
impl RefUnwindSafe for NameValue
impl Send for NameValue
impl Sync for NameValue
impl Unpin for NameValue
impl UnwindSafe for NameValue
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