pub enum AddressKind {
Base,
Ptr,
Enterprise,
Reward,
Byron,
}Variants§
Trait Implementations§
Source§impl Clone for AddressKind
impl Clone for AddressKind
Source§fn clone(&self) -> AddressKind
fn clone(&self) -> AddressKind
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 AddressKind
impl Debug for AddressKind
Source§impl From<AddressKind> for JsValue
impl From<AddressKind> for JsValue
Source§fn from(value: AddressKind) -> JsValue
fn from(value: AddressKind) -> JsValue
Converts to this type from the input type.
Source§impl FromWasmAbi for AddressKind
impl FromWasmAbi for AddressKind
Source§impl IntoWasmAbi for AddressKind
impl IntoWasmAbi for AddressKind
Source§impl OptionFromWasmAbi for AddressKind
impl OptionFromWasmAbi for AddressKind
Source§fn is_none(val: &<AddressKind as FromWasmAbi>::Abi) -> bool
fn is_none(val: &<AddressKind as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for AddressKind
impl OptionIntoWasmAbi for AddressKind
Source§fn none() -> <AddressKind as IntoWasmAbi>::Abi
fn none() -> <AddressKind as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§impl Ord for AddressKind
impl Ord for AddressKind
Source§fn cmp(&self, other: &AddressKind) -> Ordering
fn cmp(&self, other: &AddressKind) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for AddressKind
impl PartialEq for AddressKind
Source§impl PartialOrd for AddressKind
impl PartialOrd for AddressKind
Source§impl TryFromJsValue for AddressKind
impl TryFromJsValue for AddressKind
Source§fn try_from_js_value(
value: JsValue,
) -> Result<AddressKind, <AddressKind as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<AddressKind, <AddressKind as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for AddressKind
impl VectorFromWasmAbi for AddressKind
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <AddressKind as VectorFromWasmAbi>::Abi, ) -> Box<[AddressKind]>
Source§impl VectorIntoWasmAbi for AddressKind
impl VectorIntoWasmAbi for AddressKind
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[AddressKind]>, ) -> <AddressKind as VectorIntoWasmAbi>::Abi
impl Copy for AddressKind
impl Eq for AddressKind
impl StructuralPartialEq for AddressKind
Auto Trait Implementations§
impl Freeze for AddressKind
impl RefUnwindSafe for AddressKind
impl Send for AddressKind
impl Sync for AddressKind
impl Unpin for AddressKind
impl UnwindSafe for AddressKind
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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.