pub enum StringType {
StrLit,
String,
}
Expand description
Type of String
Variants§
Trait Implementations§
Source§impl Clone for StringType
impl Clone for StringType
Source§fn clone(&self) -> StringType
fn clone(&self) -> StringType
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 StringType
impl Debug for StringType
Source§impl<'de> Deserialize<'de> for StringType
impl<'de> Deserialize<'de> for StringType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<StringType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<StringType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StringType
impl Display for StringType
Source§impl FromStr for StringType
impl FromStr for StringType
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<StringType, <StringType as FromStr>::Err>
fn from_str(s: &str) -> Result<StringType, <StringType as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl PartialEq for StringType
impl PartialEq for StringType
Source§impl Serialize for StringType
impl Serialize for StringType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for StringType
impl TryFrom<&str> for StringType
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(s: &str) -> Result<StringType, <StringType as TryFrom<&str>>::Error>
fn try_from(s: &str) -> Result<StringType, <StringType as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for StringType
impl Eq for StringType
impl StructuralPartialEq for StringType
Auto Trait Implementations§
impl Freeze for StringType
impl RefUnwindSafe for StringType
impl Send for StringType
impl Sync for StringType
impl Unpin for StringType
impl UnwindSafe for StringType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.