pub enum ClaimableBalance {
V0([u8; 32]),
}Expand description
A claimable balance identifier (B...).
Variants§
Implementations§
Source§impl ClaimableBalance
impl ClaimableBalance
pub const ENCODED_LEN: usize
pub fn to_string(&self) -> HeaplessString<{ Self::ENCODED_LEN }>
pub fn from_string(s: &str) -> Result<Self, DecodeError>
pub fn from_slice(s: &[u8]) -> Result<Self, DecodeError>
Trait Implementations§
Source§impl Clone for ClaimableBalance
impl Clone for ClaimableBalance
Source§fn clone(&self) -> ClaimableBalance
fn clone(&self) -> ClaimableBalance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClaimableBalance
Source§impl Debug for ClaimableBalance
impl Debug for ClaimableBalance
Source§impl Display for ClaimableBalance
impl Display for ClaimableBalance
impl Eq for ClaimableBalance
Source§impl FromStr for ClaimableBalance
impl FromStr for ClaimableBalance
Source§impl Hash for ClaimableBalance
impl Hash for ClaimableBalance
Source§impl Ord for ClaimableBalance
impl Ord for ClaimableBalance
Source§fn cmp(&self, other: &ClaimableBalance) -> Ordering
fn cmp(&self, other: &ClaimableBalance) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClaimableBalance
impl PartialEq for ClaimableBalance
Source§fn eq(&self, other: &ClaimableBalance) -> bool
fn eq(&self, other: &ClaimableBalance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ClaimableBalance
impl PartialOrd for ClaimableBalance
impl StructuralPartialEq for ClaimableBalance
Auto Trait Implementations§
impl Freeze for ClaimableBalance
impl RefUnwindSafe for ClaimableBalance
impl Send for ClaimableBalance
impl Sync for ClaimableBalance
impl Unpin for ClaimableBalance
impl UnsafeUnpin for ClaimableBalance
impl UnwindSafe for ClaimableBalance
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