Enum xsd_types::NCNameValue
source · 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 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 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
§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
§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
§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 RefUnwindSafe for NCNameValue
impl Send for NCNameValue
impl Sync for NCNameValue
impl Unpin for NCNameValue
impl UnwindSafe for NCNameValue
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