Enum strict_encoding::InvalidIdent
source · pub enum InvalidIdent {
Empty,
NonAlphabetic(AsciiString, AsciiChar),
InvalidChar(AsciiString, AsciiChar),
NonAsciiChar,
Confinement(Error),
}
Variants§
Empty
ident must contain at least one character
NonAlphabetic(AsciiString, AsciiChar)
identifier name ‘{0}’ must start with alphabetic character and not ‘{1}’
InvalidChar(AsciiString, AsciiChar)
identifier name ‘{0}’ contains invalid character ‘{1}’
NonAsciiChar
identifier name contains non-ASCII character(s)
Confinement(Error)
identifier name has invalid length
Trait Implementations§
source§impl Clone for InvalidIdent
impl Clone for InvalidIdent
source§fn clone(&self) -> InvalidIdent
fn clone(&self) -> InvalidIdent
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 InvalidIdent
impl Debug for InvalidIdent
source§impl Display for InvalidIdent
impl Display for InvalidIdent
source§impl Error for InvalidIdent
impl Error for InvalidIdent
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AsAsciiStrError> for InvalidIdent
impl From<AsAsciiStrError> for InvalidIdent
source§impl From<Error> for InvalidIdent
impl From<Error> for InvalidIdent
source§impl<O> From<FromAsciiError<O>> for InvalidIdent
impl<O> From<FromAsciiError<O>> for InvalidIdent
source§impl From<InvalidIdent> for String
impl From<InvalidIdent> for String
source§fn from(err: InvalidIdent) -> Self
fn from(err: InvalidIdent) -> Self
Converts to this type from the input type.
source§impl Hash for InvalidIdent
impl Hash for InvalidIdent
source§impl PartialEq for InvalidIdent
impl PartialEq for InvalidIdent
source§fn eq(&self, other: &InvalidIdent) -> bool
fn eq(&self, other: &InvalidIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InvalidIdent
impl StructuralEq for InvalidIdent
impl StructuralPartialEq for InvalidIdent
Auto Trait Implementations§
impl RefUnwindSafe for InvalidIdent
impl Send for InvalidIdent
impl Sync for InvalidIdent
impl Unpin for InvalidIdent
impl UnwindSafe for InvalidIdent
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.