pub struct WotNode {
pub pubkey: String,
pub alias: String,
pub follows: Vec<WotFollow>,
}Fields§
§pubkey: String§alias: String§follows: Vec<WotFollow>Implementations§
Source§impl WotNode
impl WotNode
pub fn new_class(pubkey: &str, alias: &str) -> WotNode
pub fn new_list(pubkey: &str, alias: &str, follows: Vec<WotFollow>) -> WotNode
Sourcepub fn extend_follows(&mut self, new_follows: Vec<WotFollow>)
pub fn extend_follows(&mut self, new_follows: Vec<WotFollow>)
Extend follows
pub fn get_follow(&self, target_pubkey: &str) -> Option<&WotFollow>
pub fn get_follow_mut(&mut self, target_pubkey: &str) -> Option<&mut WotFollow>
Sourcepub fn binary_search_ref<'a>(
pubkey: &str,
list: &'a Vec<&WotNode>,
) -> Option<&'a WotNode>
pub fn binary_search_ref<'a>( pubkey: &str, list: &'a Vec<&WotNode>, ) -> Option<&'a WotNode>
Finds a WotNode in a Vec<&WotNode>
Trait Implementations§
impl Eq for WotNode
Auto Trait Implementations§
impl Freeze for WotNode
impl RefUnwindSafe for WotNode
impl Send for WotNode
impl Sync for WotNode
impl Unpin for WotNode
impl UnwindSafe for WotNode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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