#[repr(transparent)]pub struct UntypedAddress(pub [u8; 32]);Expand description
An untyped 32-byte address (interop bridge).
Useful for storing addresses where the account type is not known at compile time, or when interfacing with raw hopper-native APIs.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl Clone for UntypedAddress
impl Clone for UntypedAddress
Source§fn clone(&self) -> UntypedAddress
fn clone(&self) -> UntypedAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FixedLayout for UntypedAddress
impl FixedLayout for UntypedAddress
Source§impl PartialEq for UntypedAddress
impl PartialEq for UntypedAddress
Source§fn eq(&self, other: &UntypedAddress) -> bool
fn eq(&self, other: &UntypedAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Zeroable for UntypedAddress
Available on crate feature hopper-native-backend only.
impl Zeroable for UntypedAddress
Available on crate feature
hopper-native-backend only.impl Copy for UntypedAddress
impl Eq for UntypedAddress
impl Pod for UntypedAddress
Available on crate feature
hopper-native-backend only.impl Pod for UntypedAddress
impl StructuralPartialEq for UntypedAddress
Auto Trait Implementations§
impl Freeze for UntypedAddress
impl RefUnwindSafe for UntypedAddress
impl Send for UntypedAddress
impl Sync for UntypedAddress
impl Unpin for UntypedAddress
impl UnsafeUnpin for UntypedAddress
impl UnwindSafe for UntypedAddress
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.