Enum bpstd::IndexParseError
source · pub enum IndexParseError {
Invalid(IndexError),
Parse(ParseIntError),
HardenedRequired(String),
}
Variants§
Invalid(IndexError)
Parse(ParseIntError)
invalid index string representation - {0}
HardenedRequired(String)
expected hardened index value instead of the provided unhardened {0}
Trait Implementations§
source§impl Clone for IndexParseError
impl Clone for IndexParseError
source§fn clone(&self) -> IndexParseError
fn clone(&self) -> IndexParseError
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 IndexParseError
impl Debug for IndexParseError
source§impl Display for IndexParseError
impl Display for IndexParseError
source§impl Error for IndexParseError
impl Error for IndexParseError
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<IndexError> for IndexParseError
impl From<IndexError> for IndexParseError
source§fn from(v: IndexError) -> IndexParseError
fn from(v: IndexError) -> IndexParseError
Converts to this type from the input type.
source§impl From<IndexParseError> for SegParseError
impl From<IndexParseError> for SegParseError
source§fn from(v: IndexParseError) -> SegParseError
fn from(v: IndexParseError) -> SegParseError
Converts to this type from the input type.
source§impl From<IndexParseError> for TerminalParseError
impl From<IndexParseError> for TerminalParseError
source§fn from(v: IndexParseError) -> TerminalParseError
fn from(v: IndexParseError) -> TerminalParseError
Converts to this type from the input type.
source§impl From<ParseIntError> for IndexParseError
impl From<ParseIntError> for IndexParseError
source§fn from(v: ParseIntError) -> IndexParseError
fn from(v: ParseIntError) -> IndexParseError
Converts to this type from the input type.
source§impl PartialEq for IndexParseError
impl PartialEq for IndexParseError
source§fn eq(&self, other: &IndexParseError) -> bool
fn eq(&self, other: &IndexParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IndexParseError
impl StructuralEq for IndexParseError
impl StructuralPartialEq for IndexParseError
Auto Trait Implementations§
impl RefUnwindSafe for IndexParseError
impl Send for IndexParseError
impl Sync for IndexParseError
impl Unpin for IndexParseError
impl UnwindSafe for IndexParseError
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.