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
§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
§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
§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 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