Enum xsd_types::NCNameValueRef
source · pub enum NCNameValueRef<'a> {
NCName(&'a NCName),
Id(&'a Id),
IdRef(&'a IdRef),
}Expand description
Any specialized NCName value reference.
Variants§
Implementations§
source§impl<'a> NCNameValueRef<'a>
impl<'a> NCNameValueRef<'a>
pub fn datatype(&self) -> NCNameDatatype
pub fn cloned(&self) -> NCNameValue
Trait Implementations§
source§impl<'a> Clone for NCNameValueRef<'a>
impl<'a> Clone for NCNameValueRef<'a>
source§fn clone(&self) -> NCNameValueRef<'a>
fn clone(&self) -> NCNameValueRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for NCNameValueRef<'a>
impl<'a> Debug for NCNameValueRef<'a>
source§impl<'a> Display for NCNameValueRef<'a>
impl<'a> Display for NCNameValueRef<'a>
source§impl<'a> From<NCNameValueRef<'a>> for NameValueRef<'a>
impl<'a> From<NCNameValueRef<'a>> for NameValueRef<'a>
source§fn from(value: NCNameValueRef<'a>) -> Self
fn from(value: NCNameValueRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<NCNameValueRef<'a>> for NormalizedStringValueRef<'a>
impl<'a> From<NCNameValueRef<'a>> for NormalizedStringValueRef<'a>
source§fn from(value: NCNameValueRef<'a>) -> Self
fn from(value: NCNameValueRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<NCNameValueRef<'a>> for StringValueRef<'a>
impl<'a> From<NCNameValueRef<'a>> for StringValueRef<'a>
source§fn from(value: NCNameValueRef<'a>) -> Self
fn from(value: NCNameValueRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<NCNameValueRef<'a>> for TokenValueRef<'a>
impl<'a> From<NCNameValueRef<'a>> for TokenValueRef<'a>
source§fn from(value: NCNameValueRef<'a>) -> Self
fn from(value: NCNameValueRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<NCNameValueRef<'a>> for ValueRef<'a>
impl<'a> From<NCNameValueRef<'a>> for ValueRef<'a>
source§fn from(value: NCNameValueRef<'a>) -> Self
fn from(value: NCNameValueRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> TryFrom<NameValueRef<'a>> for NCNameValueRef<'a>
impl<'a> TryFrom<NameValueRef<'a>> for NCNameValueRef<'a>
§type Error = NameValueRef<'a>
type Error = NameValueRef<'a>
The type returned in the event of a conversion error.
source§fn try_from(value: NameValueRef<'a>) -> Result<Self, NameValueRef<'a>>
fn try_from(value: NameValueRef<'a>) -> Result<Self, NameValueRef<'a>>
Performs the conversion.
source§impl<'a> TryFrom<NormalizedStringValueRef<'a>> for NCNameValueRef<'a>
impl<'a> TryFrom<NormalizedStringValueRef<'a>> for NCNameValueRef<'a>
§type Error = NormalizedStringValueRef<'a>
type Error = NormalizedStringValueRef<'a>
The type returned in the event of a conversion error.
source§fn try_from(
value: NormalizedStringValueRef<'a>
) -> Result<Self, NormalizedStringValueRef<'a>>
fn try_from( value: NormalizedStringValueRef<'a> ) -> Result<Self, NormalizedStringValueRef<'a>>
Performs the conversion.
source§impl<'a> TryFrom<StringValueRef<'a>> for NCNameValueRef<'a>
impl<'a> TryFrom<StringValueRef<'a>> for NCNameValueRef<'a>
§type Error = StringValueRef<'a>
type Error = StringValueRef<'a>
The type returned in the event of a conversion error.
source§fn try_from(value: StringValueRef<'a>) -> Result<Self, StringValueRef<'a>>
fn try_from(value: StringValueRef<'a>) -> Result<Self, StringValueRef<'a>>
Performs the conversion.
source§impl<'a> TryFrom<TokenValueRef<'a>> for NCNameValueRef<'a>
impl<'a> TryFrom<TokenValueRef<'a>> for NCNameValueRef<'a>
§type Error = TokenValueRef<'a>
type Error = TokenValueRef<'a>
The type returned in the event of a conversion error.
source§fn try_from(value: TokenValueRef<'a>) -> Result<Self, TokenValueRef<'a>>
fn try_from(value: TokenValueRef<'a>) -> Result<Self, TokenValueRef<'a>>
Performs the conversion.
source§impl<'a> TryFrom<ValueRef<'a>> for NCNameValueRef<'a>
impl<'a> TryFrom<ValueRef<'a>> for NCNameValueRef<'a>
source§impl<'a> XsdValue for NCNameValueRef<'a>
impl<'a> XsdValue for NCNameValueRef<'a>
impl<'a> Copy for NCNameValueRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NCNameValueRef<'a>
impl<'a> Send for NCNameValueRef<'a>
impl<'a> Sync for NCNameValueRef<'a>
impl<'a> Unpin for NCNameValueRef<'a>
impl<'a> UnwindSafe for NCNameValueRef<'a>
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