Enum miden_assembly::LabelError
source · pub enum LabelError {
EmptyLabel,
RpoDigestHexLabelIncorrectLength(usize),
InvalidHexCharacters(String),
InvalidHexRpoDigestLabel(String),
InvalidFirstLetter(String),
InvalidChars(String),
LabelTooLong(String, usize),
Uppercase(String),
}Variants§
EmptyLabel
RpoDigestHexLabelIncorrectLength(usize)
InvalidHexCharacters(String)
InvalidHexRpoDigestLabel(String)
InvalidFirstLetter(String)
InvalidChars(String)
LabelTooLong(String, usize)
Uppercase(String)
Implementations§
source§impl LabelError
impl LabelError
pub const fn empty_label() -> Self
pub fn rpo_digest_hex_label_incorrect_length(len: usize) -> Self
pub fn invalid_label(label: &str) -> Self
pub fn invalid_fist_letter(label: &str) -> Self
pub fn label_too_long(label: &str, max_len: usize) -> Self
pub fn must_be_uppercase(label: &str) -> Self
Trait Implementations§
source§impl Clone for LabelError
impl Clone for LabelError
source§fn clone(&self) -> LabelError
fn clone(&self) -> LabelError
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 LabelError
impl Debug for LabelError
source§impl Display for LabelError
impl Display for LabelError
source§impl From<LabelError> for AssemblyError
impl From<LabelError> for AssemblyError
source§fn from(err: LabelError) -> Self
fn from(err: LabelError) -> Self
Converts to this type from the input type.
source§impl PartialEq for LabelError
impl PartialEq for LabelError
source§fn eq(&self, other: &LabelError) -> bool
fn eq(&self, other: &LabelError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for LabelError
impl StructuralPartialEq for LabelError
Auto Trait Implementations§
impl Freeze for LabelError
impl RefUnwindSafe for LabelError
impl Send for LabelError
impl Sync for LabelError
impl Unpin for LabelError
impl UnwindSafe for LabelError
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