pub struct UnderAmount<T> {Show 13 fields
pub _10sats: T,
pub _100sats: T,
pub _1k_sats: T,
pub _10k_sats: T,
pub _100k_sats: T,
pub _1m_sats: T,
pub _10m_sats: T,
pub _1btc: T,
pub _10btc: T,
pub _100btc: T,
pub _1k_btc: T,
pub _10k_btc: T,
pub _100k_btc: T,
}Fields§
§_10sats: T§_100sats: T§_1k_sats: T§_10k_sats: T§_100k_sats: T§_1m_sats: T§_10m_sats: T§_1btc: T§_10btc: T§_100btc: T§_1k_btc: T§_10k_btc: T§_100k_btc: TImplementations§
Source§impl UnderAmount<CohortName>
impl UnderAmount<CohortName>
pub const fn names() -> &'static UnderAmount<CohortName>
Source§impl<T> UnderAmount<T>
impl<T> UnderAmount<T>
pub fn new<F>(create: F) -> UnderAmount<T>
pub fn try_new<F, E>(create: F) -> Result<UnderAmount<T>, E>
pub fn iter(&self) -> impl Iterator<Item = &T>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn par_iter_mut(&mut self) -> impl ParallelIterator<Item = &mut T>
Trait Implementations§
Source§impl<T> Clone for UnderAmount<T>where
T: Clone,
impl<T> Clone for UnderAmount<T>where
T: Clone,
Source§fn clone(&self) -> UnderAmount<T>
fn clone(&self) -> UnderAmount<T>
Returns a duplicate 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<T> Default for UnderAmount<T>where
T: Default,
impl<T> Default for UnderAmount<T>where
T: Default,
Source§fn default() -> UnderAmount<T>
fn default() -> UnderAmount<T>
Returns the “default value” for a type. Read more
Source§impl<T> ReadOnlyClone for UnderAmount<T>where
T: ReadOnlyClone,
impl<T> ReadOnlyClone for UnderAmount<T>where
T: ReadOnlyClone,
type ReadOnly = UnderAmount<<T as ReadOnlyClone>::ReadOnly>
fn read_only_clone(&self) -> <UnderAmount<T> as ReadOnlyClone>::ReadOnly
Source§impl<T> Serialize for UnderAmount<T>where
T: Serialize,
impl<T> Serialize for UnderAmount<T>where
T: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> Traversable for UnderAmount<T>
impl<T> Traversable for UnderAmount<T>
fn to_tree_node(&self) -> TreeNode
Source§fn iter_any_exportable(&self) -> impl Iterator<Item = &dyn AnyExportableVec>
fn iter_any_exportable(&self) -> impl Iterator<Item = &dyn AnyExportableVec>
All vecs including hidden — used for disk writes, flushes, exports.
Source§fn iter_any_visible(&self) -> impl Iterator<Item = &dyn AnyExportableVec>
fn iter_any_visible(&self) -> impl Iterator<Item = &dyn AnyExportableVec>
Only non-hidden vecs — used for building the public series list.
Auto Trait Implementations§
impl<T> Freeze for UnderAmount<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnderAmount<T>where
T: RefUnwindSafe,
impl<T> Send for UnderAmount<T>where
T: Send,
impl<T> Sync for UnderAmount<T>where
T: Sync,
impl<T> Unpin for UnderAmount<T>where
T: Unpin,
impl<T> UnsafeUnpin for UnderAmount<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UnderAmount<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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