#[repr(transparent)]pub struct Pubkey(pub [u8; 32]);Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl<'a> TryFrom<&Pubkey> for Pubkey
impl<'a> TryFrom<&Pubkey> for Pubkey
Source§type Error = SolanaDeserializerError
type Error = SolanaDeserializerError
The type returned in the event of a conversion error.
Source§fn try_from(pubkey: &FBPubkey) -> SolanaDeserializeResult<Self>
fn try_from(pubkey: &FBPubkey) -> SolanaDeserializeResult<Self>
Performs the conversion.
Source§impl<'a> Verifiable for Pubkey
impl<'a> Verifiable for Pubkey
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for Pubkey
impl Eq for Pubkey
impl SimpleToVerifyInSlice for Pubkey
impl StructuralPartialEq for Pubkey
Auto Trait Implementations§
impl Freeze for Pubkey
impl RefUnwindSafe for Pubkey
impl Send for Pubkey
impl Sync for Pubkey
impl Unpin for Pubkey
impl UnsafeUnpin for Pubkey
impl UnwindSafe for Pubkey
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 more