Enum xsd_types::StringValue
source · pub enum StringValue {
String(String),
NormalizedString(NormalizedString),
Token(TokenBuf),
Language(LanguageBuf),
Name(NameBuf),
NCName(NCNameBuf),
Id(IdBuf),
IdRef(IdRefBuf),
NMToken(NMTokenBuf),
}Expand description
Any specialized str value.
Variants§
String(String)
NormalizedString(NormalizedString)
Token(TokenBuf)
Language(LanguageBuf)
Name(NameBuf)
NCName(NCNameBuf)
Id(IdBuf)
IdRef(IdRefBuf)
NMToken(NMTokenBuf)
Implementations§
source§impl StringValue
impl StringValue
pub fn datatype(&self) -> StringDatatype
source§impl StringValue
impl StringValue
pub fn as_ref(&self) -> StringValueRef<'_>
Trait Implementations§
source§impl Clone for StringValue
impl Clone for StringValue
source§fn clone(&self) -> StringValue
fn clone(&self) -> StringValue
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 StringValue
impl Debug for StringValue
source§impl Display for StringValue
impl Display for StringValue
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<NameValue> for StringValue
impl From<NameValue> for StringValue
source§impl From<NormalizedStringValue> for StringValue
impl From<NormalizedStringValue> for StringValue
source§fn from(value: NormalizedStringValue) -> Self
fn from(value: NormalizedStringValue) -> Self
Converts to this type from the input type.
source§impl From<StringValue> for Value
impl From<StringValue> for Value
source§fn from(value: StringValue) -> Self
fn from(value: StringValue) -> Self
Converts to this type from the input type.
source§impl From<TokenValue> for StringValue
impl From<TokenValue> for StringValue
source§fn from(value: TokenValue) -> Self
fn from(value: TokenValue) -> Self
Converts to this type from the input type.
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<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<StringValue> for NormalizedStringValue
impl TryFrom<StringValue> for NormalizedStringValue
§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<StringValue> for TokenValue
impl TryFrom<StringValue> for TokenValue
§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<Value> for StringValue
impl TryFrom<Value> for StringValue
Auto Trait Implementations§
impl RefUnwindSafe for StringValue
impl Send for StringValue
impl Sync for StringValue
impl Unpin for StringValue
impl UnwindSafe for StringValue
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