pub enum NCNameValue {
NCName(NCNameBuf),
Id(IdBuf),
IdRef(IdRefBuf),
}Expand description
Any specialized NCName value.
Variants§
Implementations§
Source§impl NCNameValue
impl NCNameValue
pub fn datatype(&self) -> NCNameDatatype
Source§impl NCNameValue
impl NCNameValue
pub fn as_ref(&self) -> NCNameValueRef<'_>
Trait Implementations§
Source§impl Clone for NCNameValue
impl Clone for NCNameValue
Source§fn clone(&self) -> NCNameValue
fn clone(&self) -> NCNameValue
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NCNameValue
impl Debug for NCNameValue
Source§impl Display for NCNameValue
impl Display for NCNameValue
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<NCNameValue> for NormalizedStringValue
impl From<NCNameValue> for NormalizedStringValue
Source§fn from(value: NCNameValue) -> Self
fn from(value: NCNameValue) -> Self
Converts to this type from the input type.
Source§impl From<NCNameValue> for StringValue
impl From<NCNameValue> for StringValue
Source§fn from(value: NCNameValue) -> Self
fn from(value: NCNameValue) -> Self
Converts to this type from the input type.
Source§impl From<NCNameValue> for TokenValue
impl From<NCNameValue> for TokenValue
Source§fn from(value: NCNameValue) -> Self
fn from(value: NCNameValue) -> Self
Converts to this type from the input type.
Source§impl From<NCNameValue> for Value
impl From<NCNameValue> for Value
Source§fn from(value: NCNameValue) -> Self
fn from(value: NCNameValue) -> Self
Converts to this type from the input type.
Source§impl TryFrom<NameValue> for NCNameValue
impl TryFrom<NameValue> for NCNameValue
Source§impl TryFrom<NormalizedStringValue> for NCNameValue
impl TryFrom<NormalizedStringValue> for NCNameValue
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 NCNameValue
impl TryFrom<StringValue> for NCNameValue
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 NCNameValue
impl TryFrom<TokenValue> for NCNameValue
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.
Source§impl TryFrom<Value> for NCNameValue
impl TryFrom<Value> for NCNameValue
Auto Trait Implementations§
impl Freeze for NCNameValue
impl RefUnwindSafe for NCNameValue
impl Send for NCNameValue
impl Sync for NCNameValue
impl Unpin for NCNameValue
impl UnwindSafe for NCNameValue
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)