pub enum AccountTreeKey<'arena> {
Root,
Descendant(AccountAggregate<'arena>),
}Expand description
Key of the AccountTree which can be treated as a tree node.
Variants§
Implementations§
Source§impl<'arena> AccountTreeKey<'arena>
impl<'arena> AccountTreeKey<'arena>
Sourcepub fn as_aggregate(self) -> Option<AccountAggregate<'arena>>
pub fn as_aggregate(self) -> Option<AccountAggregate<'arena>>
Returns as Option<AccountAggregate>.
It will be Some unless the self is root.
Trait Implementations§
Source§impl<'arena> Clone for AccountTreeKey<'arena>
impl<'arena> Clone for AccountTreeKey<'arena>
impl<'arena> Copy for AccountTreeKey<'arena>
Source§impl<'arena> Debug for AccountTreeKey<'arena>
impl<'arena> Debug for AccountTreeKey<'arena>
impl<'arena> Eq for AccountTreeKey<'arena>
Source§impl<'arena> From<Account<'arena>> for AccountTreeKey<'arena>
impl<'arena> From<Account<'arena>> for AccountTreeKey<'arena>
Source§impl<'arena> From<AccountAggregate<'arena>> for AccountTreeKey<'arena>
impl<'arena> From<AccountAggregate<'arena>> for AccountTreeKey<'arena>
Source§fn from(value: AccountAggregate<'arena>) -> Self
fn from(value: AccountAggregate<'arena>) -> Self
Converts to this type from the input type.
Source§impl<'arena> Hash for AccountTreeKey<'arena>
impl<'arena> Hash for AccountTreeKey<'arena>
Source§impl<'arena> PartialEq for AccountTreeKey<'arena>
impl<'arena> PartialEq for AccountTreeKey<'arena>
impl<'arena> StructuralPartialEq for AccountTreeKey<'arena>
Auto Trait Implementations§
impl<'arena> Freeze for AccountTreeKey<'arena>
impl<'arena> RefUnwindSafe for AccountTreeKey<'arena>
impl<'arena> Send for AccountTreeKey<'arena>
impl<'arena> Sync for AccountTreeKey<'arena>
impl<'arena> Unpin for AccountTreeKey<'arena>
impl<'arena> UnsafeUnpin for AccountTreeKey<'arena>
impl<'arena> UnwindSafe for AccountTreeKey<'arena>
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