pub trait Symbol:
'static
+ Clone
+ Copy
+ Display
+ Debug
+ FromStr<Err = ParseSymbolError>
+ AsRef<Self>
+ AsMut<Self>
+ PartialEq
+ Eq
+ PartialOrd
+ Ord
+ PartialEq<Self::Concrete>
+ PartialOrd<Self::Concrete>
+ PartialEq<Self::Ambiguous>
+ PartialOrd<Self::Ambiguous>
+ Into<Self::Ambiguous>
+ TryInto<Self::Concrete>
+ Hash
+ Sealed {
type Concrete: Symbol;
type Ambiguous: Symbol;
// Required methods
fn to_str(self) -> &'static str;
fn from_ascii(ascii: u8) -> Result<Self, ParseSymbolError>;
fn to_ascii(self) -> u8;
fn lit<const N: usize>(literal: &[u8; N]) -> [Self; N];
}Required Associated Types§
Required Methods§
Sourcefn from_ascii(ascii: u8) -> Result<Self, ParseSymbolError>
fn from_ascii(ascii: u8) -> Result<Self, ParseSymbolError>
Construct from (case-insensitive) ASCII representation
§Errors
Returns ParseSymbolError if the given byte isn’t a valid (case-insensitive).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.