pub struct PendingWithdrawals { /* private fields */ }Implementations§
Source§impl PendingWithdrawals
impl PendingWithdrawals
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn insert( &mut self, id: u64, withdrawal: PendingWithdrawal, ) -> Option<PendingWithdrawal>
pub fn remove(&mut self, id: &u64) -> Option<PendingWithdrawal>
pub fn get(&self, id: &u64) -> Option<&PendingWithdrawal>
pub fn get_mut(&mut self, id: &u64) -> Option<&mut PendingWithdrawal>
pub fn contains_key(&self, id: &u64) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&u64, &PendingWithdrawal)>
pub fn values(&self) -> impl Iterator<Item = &PendingWithdrawal>
pub fn keys(&self) -> impl Iterator<Item = &u64>
Trait Implementations§
Source§impl BorshDeserialize for PendingWithdrawals
impl BorshDeserialize for PendingWithdrawals
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§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.
§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 BorshSchema for PendingWithdrawals
impl BorshSchema for PendingWithdrawals
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for PendingWithdrawals
impl BorshSerialize for PendingWithdrawals
Source§impl Clone for PendingWithdrawals
impl Clone for PendingWithdrawals
Source§fn clone(&self) -> PendingWithdrawals
fn clone(&self) -> PendingWithdrawals
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendingWithdrawals
impl Debug for PendingWithdrawals
Source§impl Default for PendingWithdrawals
impl Default for PendingWithdrawals
Source§fn default() -> PendingWithdrawals
fn default() -> PendingWithdrawals
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PendingWithdrawals
impl<'de> Deserialize<'de> for PendingWithdrawals
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromIterator<(u64, PendingWithdrawal)> for PendingWithdrawals
impl FromIterator<(u64, PendingWithdrawal)> for PendingWithdrawals
Source§fn from_iter<T: IntoIterator<Item = (u64, PendingWithdrawal)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (u64, PendingWithdrawal)>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for PendingWithdrawals
impl PartialEq for PendingWithdrawals
Source§impl Serialize for PendingWithdrawals
impl Serialize for PendingWithdrawals
impl Eq for PendingWithdrawals
impl StructuralPartialEq for PendingWithdrawals
Auto Trait Implementations§
impl Freeze for PendingWithdrawals
impl RefUnwindSafe for PendingWithdrawals
impl Send for PendingWithdrawals
impl Sync for PendingWithdrawals
impl Unpin for PendingWithdrawals
impl UnwindSafe for PendingWithdrawals
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