pub enum EnsNameToken {
Valid(TokenValid),
Mapped(TokenMapped),
Ignored(TokenIgnored),
Disallowed(TokenDisallowed),
Stop(TokenStop),
Nfc(TokenNfc),
Emoji(TokenEmoji),
}
Expand description
Represents a token in an ENS name. see https://docs.ens.domains/ensip/15#tokenize for more details.
Variants§
Valid(TokenValid)
Mapped(TokenMapped)
Ignored(TokenIgnored)
Disallowed(TokenDisallowed)
Stop(TokenStop)
Nfc(TokenNfc)
Emoji(TokenEmoji)
Implementations§
Source§impl EnsNameToken
impl EnsNameToken
pub fn cps(&self) -> Vec<CodePoint> ⓘ
pub fn input_size(&self) -> usize
pub fn is_text(&self) -> bool
pub fn is_emoji(&self) -> bool
pub fn is_ignored(&self) -> bool
pub fn is_disallowed(&self) -> bool
pub fn is_stop(&self) -> bool
pub fn stop() -> Self
pub fn as_string(&self) -> String
Trait Implementations§
Source§impl Clone for EnsNameToken
impl Clone for EnsNameToken
Source§fn clone(&self) -> EnsNameToken
fn clone(&self) -> EnsNameToken
Returns a duplicate 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 EnsNameToken
impl Debug for EnsNameToken
Source§impl PartialEq for EnsNameToken
impl PartialEq for EnsNameToken
impl Eq for EnsNameToken
impl StructuralPartialEq for EnsNameToken
Auto Trait Implementations§
impl Freeze for EnsNameToken
impl RefUnwindSafe for EnsNameToken
impl Send for EnsNameToken
impl Sync for EnsNameToken
impl Unpin for EnsNameToken
impl UnwindSafe for EnsNameToken
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more