pub struct Tangle { /* private fields */ }
Implementations§
source§impl Tangle
impl Tangle
pub fn new(root_msg_id: MsgId) -> Self
pub fn add(&mut self, msg_hash: &MsgId, msg: &Msg)
pub fn topo_sort(&self) -> Vec<MsgId>
pub fn get_tips(&self) -> HashSet<MsgId>
pub fn get_lipmaa_set(&self, depth: u64) -> HashSet<MsgId>
pub fn has(&self, msg_hash: &MsgId) -> bool
pub fn get_depth(&self, msg_hash: &MsgId) -> Option<u64>
pub fn is_feed(&self) -> bool
pub fn get_id(&self) -> &MsgId
pub fn get_moot_details(&self) -> Option<MootDetails>
pub fn get_type(&self) -> Result<TangleType, TangleMissingRootMessageError>
pub fn get_root(&self) -> Result<Msg, TangleMissingRootMessageError>
pub fn shortest_path_to_root(&self, msg_hash: &MsgId) -> Vec<MsgId>
pub fn get_minimum_among(&self, msg_ids: Vec<MsgId>) -> Vec<MsgId>
pub fn precedes(&self, a: &MsgId, b: &MsgId) -> bool
pub fn size(&self) -> usize
pub fn get_max_depth(&self) -> u64
pub fn debug(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Tangle
impl Send for Tangle
impl Sync for Tangle
impl Unpin for Tangle
impl UnwindSafe for Tangle
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