pub struct BaseAtoms { /* private fields */ }Implementations§
Source§impl BaseAtoms
impl BaseAtoms
pub fn checked_add(self, other: Self) -> Result<BaseAtoms, ManifestError>
pub fn checked_sub(self, other: Self) -> Result<BaseAtoms, ManifestError>
Source§impl BaseAtoms
impl BaseAtoms
pub fn overflowing_add(self, other: Self) -> (BaseAtoms, bool)
pub fn saturating_add(self, other: Self) -> BaseAtoms
pub fn saturating_sub(self, other: Self) -> BaseAtoms
pub fn wrapping_add(self, other: Self) -> BaseAtoms
pub fn wrapping_sub(self, other: Self) -> BaseAtoms
Source§impl BaseAtoms
impl BaseAtoms
pub fn checked_mul( self, other: QuoteAtomsPerBaseAtom, round_up: bool, ) -> Result<QuoteAtoms, ProgramError>
Trait Implementations§
Source§impl AddAssign for BaseAtoms
impl AddAssign for BaseAtoms
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl BorshDeserialize for BaseAtomswhere
u64: BorshDeserialize,
impl BorshDeserialize for BaseAtomswhere
u64: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for BaseAtomswhere
u64: BorshSerialize,
impl BorshSerialize for BaseAtomswhere
u64: BorshSerialize,
Source§impl Ord for BaseAtoms
impl Ord for BaseAtoms
Source§impl PartialOrd for BaseAtoms
impl PartialOrd for BaseAtoms
Source§impl SubAssign for BaseAtoms
impl SubAssign for BaseAtoms
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for BaseAtoms
impl Eq for BaseAtoms
impl Pod for BaseAtoms
Auto Trait Implementations§
impl Freeze for BaseAtoms
impl RefUnwindSafe for BaseAtoms
impl Send for BaseAtoms
impl Sync for BaseAtoms
impl Unpin for BaseAtoms
impl UnwindSafe for BaseAtoms
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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DerefOrBorrow<T> for Twhere
T: ?Sized,
impl<T> DerefOrBorrow<T> for Twhere
T: ?Sized,
fn deref_or_borrow(&self) -> &T
Source§impl<T> DerefOrBorrowMut<T> for Twhere
T: ?Sized,
impl<T> DerefOrBorrowMut<T> for Twhere
T: ?Sized,
fn deref_or_borrow_mut(&mut self) -> &mut T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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