Struct freya_common::ParagraphElements
source · pub struct ParagraphElements {
pub paragraphs: Arc<Mutex<FxHashMap<Uuid, FxHashSet<NodeId>>>>,
}
Fields§
§paragraphs: Arc<Mutex<FxHashMap<Uuid, FxHashSet<NodeId>>>>
Implementations§
source§impl ParagraphElements
impl ParagraphElements
pub fn insert_paragraph(&self, node_id: NodeId, text_id: Uuid)
pub fn paragraphs(&self) -> MutexGuard<'_, FxHashMap<Uuid, FxHashSet<NodeId>>>
pub fn remove_paragraph(&self, node_id: NodeId, text_id: &Uuid)
pub fn len_paragraphs(&self) -> usize
Trait Implementations§
source§impl Clone for ParagraphElements
impl Clone for ParagraphElements
source§fn clone(&self) -> ParagraphElements
fn clone(&self) -> ParagraphElements
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ParagraphElements
impl Default for ParagraphElements
source§fn default() -> ParagraphElements
fn default() -> ParagraphElements
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParagraphElements
impl RefUnwindSafe for ParagraphElements
impl Send for ParagraphElements
impl Sync for ParagraphElements
impl Unpin for ParagraphElements
impl UnwindSafe for ParagraphElements
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.