pub enum ScHostValErrorCode {
UnknownError,
ReservedTagValue,
UnexpectedValType,
U63OutOfRange,
U32OutOfRange,
StaticUnknown,
MissingObject,
SymbolTooLong,
SymbolBadChar,
SymbolContainsNonUtf8,
BitsetTooManyBits,
StatusUnknown,
}
Variants
UnknownError
ReservedTagValue
UnexpectedValType
U63OutOfRange
U32OutOfRange
StaticUnknown
MissingObject
SymbolTooLong
SymbolBadChar
SymbolContainsNonUtf8
BitsetTooManyBits
StatusUnknown
Implementations
impl ScHostValErrorCode
impl ScHostValErrorCode
pub const VARIANTS: [ScHostValErrorCode; 12] = [ScHostValErrorCode::UnknownError, ScHostValErrorCode::ReservedTagValue, ScHostValErrorCode::UnexpectedValType, ScHostValErrorCode::U63OutOfRange, ScHostValErrorCode::U32OutOfRange, ScHostValErrorCode::StaticUnknown, ScHostValErrorCode::MissingObject, ScHostValErrorCode::SymbolTooLong, ScHostValErrorCode::SymbolBadChar, ScHostValErrorCode::SymbolContainsNonUtf8, ScHostValErrorCode::BitsetTooManyBits, ScHostValErrorCode::StatusUnknown]
pub const VARIANTS_STR: [&'static str; 12] = ["UnknownError", "ReservedTagValue", "UnexpectedValType", "U63OutOfRange", "U32OutOfRange", "StaticUnknown", "MissingObject", "SymbolTooLong", "SymbolBadChar", "SymbolContainsNonUtf8", "BitsetTooManyBits", "StatusUnknown"]
pub const fn name(&self) -> &'static str
pub const fn variants() -> [ScHostValErrorCode; 12]
Trait Implementations
impl Clone for ScHostValErrorCode
impl Clone for ScHostValErrorCode
fn clone(&self) -> ScHostValErrorCode
fn clone(&self) -> ScHostValErrorCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for ScHostValErrorCode
impl Debug for ScHostValErrorCode
impl Display for ScHostValErrorCode
impl Display for ScHostValErrorCode
sourceimpl From<ScHostValErrorCode> for Status
impl From<ScHostValErrorCode> for Status
sourcefn from(code: ScHostValErrorCode) -> Status
fn from(code: ScHostValErrorCode) -> Status
Converts to this type from the input type.
impl Hash for ScHostValErrorCode
impl Hash for ScHostValErrorCode
impl Name for ScHostValErrorCode
impl Name for ScHostValErrorCode
impl Ord for ScHostValErrorCode
impl Ord for ScHostValErrorCode
fn cmp(&self, other: &ScHostValErrorCode) -> Ordering
fn cmp(&self, other: &ScHostValErrorCode) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<ScHostValErrorCode> for ScHostValErrorCode
impl PartialEq<ScHostValErrorCode> for ScHostValErrorCode
fn eq(&self, other: &ScHostValErrorCode) -> bool
fn eq(&self, other: &ScHostValErrorCode) -> bool
impl PartialOrd<ScHostValErrorCode> for ScHostValErrorCode
impl PartialOrd<ScHostValErrorCode> for ScHostValErrorCode
fn partial_cmp(&self, other: &ScHostValErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ScHostValErrorCode) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl TryFrom<i32> for ScHostValErrorCode
impl TryFrom<i32> for ScHostValErrorCode
impl Variants<ScHostValErrorCode> for ScHostValErrorCode
impl Variants<ScHostValErrorCode> for ScHostValErrorCode
fn variants() -> Iter<'static, ScHostValErrorCode>
impl Copy for ScHostValErrorCode
impl Enum for ScHostValErrorCode
impl Eq for ScHostValErrorCode
impl ReadXdr for ScHostValErrorCode
impl StructuralEq for ScHostValErrorCode
impl StructuralPartialEq for ScHostValErrorCode
impl WriteXdr for ScHostValErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ScHostValErrorCode
impl Send for ScHostValErrorCode
impl Sync for ScHostValErrorCode
impl Unpin for ScHostValErrorCode
impl UnwindSafe for ScHostValErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more