Struct switchboard_utils::AccountType
source · [−]pub struct AccountType {}
Implementations
sourceimpl 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 RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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