pub struct RatchetTree(/* private fields */);Available on 32-bit or 64-bit only.
Expand description
An exported ratchet tree as used in, e.g., GroupInfo.
Implementations§
Source§impl RatchetTree
impl RatchetTree
Sourcepub fn nodes(&self) -> impl Iterator<Item = &Node>
pub fn nodes(&self) -> impl Iterator<Item = &Node>
Returns an iterator over all nodes in the ratchet tree.
Sourcepub fn leaves(&self) -> impl Iterator<Item = &LeafNode>
pub fn leaves(&self) -> impl Iterator<Item = &LeafNode>
Returns an iterator over all leaf nodes in the ratchet tree.
Sourcepub fn parents(&self) -> impl Iterator<Item = &ParentNode>
pub fn parents(&self) -> impl Iterator<Item = &ParentNode>
Returns an iterator over all parent nodes in the ratchet tree.
Trait Implementations§
Source§impl Clone for RatchetTree
impl Clone for RatchetTree
Source§fn clone(&self) -> RatchetTree
fn clone(&self) -> RatchetTree
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 moreSource§impl Debug for RatchetTree
impl Debug for RatchetTree
Source§impl<'de> Deserialize<'de> for RatchetTree
impl<'de> Deserialize<'de> for RatchetTree
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 Display for RatchetTree
Available on crate features test-utils only.
impl Display for RatchetTree
Available on crate features
test-utils only.Source§impl From<RatchetTree> for RatchetTreeIn
impl From<RatchetTree> for RatchetTreeIn
Source§fn from(ratchet_tree: RatchetTree) -> Self
fn from(ratchet_tree: RatchetTree) -> Self
Converts to this type from the input type.
Source§impl From<RatchetTreeIn> for RatchetTree
Available on crate features test-utils only.
impl From<RatchetTreeIn> for RatchetTree
Available on crate features
test-utils only.Source§fn from(ratchet_tree_in: RatchetTreeIn) -> Self
fn from(ratchet_tree_in: RatchetTreeIn) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RatchetTree
impl PartialEq for RatchetTree
Source§fn eq(&self, other: &RatchetTree) -> bool
fn eq(&self, other: &RatchetTree) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for &RatchetTree
impl Serialize for &RatchetTree
Source§impl Serialize for RatchetTree
impl Serialize for RatchetTree
Source§impl Serialize for RatchetTree
impl Serialize for RatchetTree
Source§impl Size for &RatchetTree
impl Size for &RatchetTree
fn tls_serialized_len(&self) -> usize
Source§impl Size for RatchetTree
impl Size for RatchetTree
fn tls_serialized_len(&self) -> usize
impl Eq for RatchetTree
impl StructuralPartialEq for RatchetTree
Auto Trait Implementations§
impl Freeze for RatchetTree
impl RefUnwindSafe for RatchetTree
impl Send for RatchetTree
impl Sync for RatchetTree
impl Unpin for RatchetTree
impl UnsafeUnpin for RatchetTree
impl UnwindSafe for RatchetTree
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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