pub struct ThreadPosition {
pub index: usize,
pub depth: u32,
pub detached: bool,
}Expand description
One comment’s place in thread_order
Fields§
§index: usizeIndex into the slice passed to thread_order
depth: u32Replies above it that are in the slice: 0 for a root
detached: boolIt replies to a comment that is not in the slice (deleted, on another page, or, from March and April, on another post), so it is shown as a root
Trait Implementations§
Source§impl Clone for ThreadPosition
impl Clone for ThreadPosition
impl Copy for ThreadPosition
Source§impl Debug for ThreadPosition
impl Debug for ThreadPosition
impl Eq for ThreadPosition
Source§impl PartialEq for ThreadPosition
impl PartialEq for ThreadPosition
impl StructuralPartialEq for ThreadPosition
Auto Trait Implementations§
impl Freeze for ThreadPosition
impl RefUnwindSafe for ThreadPosition
impl Send for ThreadPosition
impl Sync for ThreadPosition
impl Unpin for ThreadPosition
impl UnsafeUnpin for ThreadPosition
impl UnwindSafe for ThreadPosition
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.