[][src]Struct solana_exchange_program::exchange_state::Tokens

pub struct Tokens {
    pub A: u64,
    pub B: u64,
    pub C: u64,
    pub D: u64,
}

Fields

A: u64B: u64C: u64D: u64

Methods

impl Tokens[src]

pub fn new(a: u64, b: u64, c: u64, d: u64) -> Self[src]

Trait Implementations

impl Clone for Tokens[src]

impl Copy for Tokens[src]

impl Debug for Tokens[src]

impl Default for Tokens[src]

impl<'de> Deserialize<'de> for Tokens[src]

impl Eq for Tokens[src]

impl Index<Token> for Tokens[src]

type Output = u64

The returned type after indexing.

impl IndexMut<Token> for Tokens[src]

impl PartialEq<Tokens> for Tokens[src]

impl Serialize for Tokens[src]

impl StructuralEq for Tokens[src]

impl StructuralPartialEq for Tokens[src]

Auto Trait Implementations

impl RefUnwindSafe for Tokens

impl Send for Tokens

impl Sync for Tokens

impl Unpin for Tokens

impl UnwindSafe for Tokens

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.