pub struct AccountType {}Implementations§
Source§impl AccountType
impl AccountType
pub fn check_account( account: &AccountInfo<'_>, type_indicator: SwitchboardAccountType, ) -> Result<(), ProgramError>
pub fn check_account_buffer( buf: &[u8], type_indicator: SwitchboardAccountType, ) -> Result<(), ProgramError>
pub fn strip_type_byte<'a>( buf: &'a [u8], type_indicator: SwitchboardAccountType, ) -> Result<&'a [u8], ProgramError>
pub fn set_type_byte( buf: &mut [u8], type_indicator: SwitchboardAccountType, ) -> Result<(), ProgramError>
Auto Trait Implementations§
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnsafeUnpin for AccountType
impl UnwindSafe for AccountType
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> 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