pub struct GlobalFieldsIdsMap<'indexing> { /* private fields */ }
Expand description
A fields ids map that can be globally updated to add fields
Implementations§
Source§impl<'indexing> GlobalFieldsIdsMap<'indexing>
impl<'indexing> GlobalFieldsIdsMap<'indexing>
pub fn new(global: &'indexing RwLock<FieldIdMapWithMetadata>) -> Self
Sourcepub fn id_or_insert(&mut self, name: &str) -> Option<FieldId>
pub fn id_or_insert(&mut self, name: &str) -> Option<FieldId>
Returns the field id related to a field name, it will create a new field id if the
name is not already known. Returns None
if the maximum field id as been reached.
pub fn id_with_metadata_or_insert( &mut self, name: &str, ) -> Option<(FieldId, Metadata)>
Trait Implementations§
Source§impl<'indexing> Clone for GlobalFieldsIdsMap<'indexing>
impl<'indexing> Clone for GlobalFieldsIdsMap<'indexing>
Source§fn clone(&self) -> GlobalFieldsIdsMap<'indexing>
fn clone(&self) -> GlobalFieldsIdsMap<'indexing>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'indexing> Freeze for GlobalFieldsIdsMap<'indexing>
impl<'indexing> RefUnwindSafe for GlobalFieldsIdsMap<'indexing>
impl<'indexing> Send for GlobalFieldsIdsMap<'indexing>
impl<'indexing> Sync for GlobalFieldsIdsMap<'indexing>
impl<'indexing> Unpin for GlobalFieldsIdsMap<'indexing>
impl<'indexing> UnwindSafe for GlobalFieldsIdsMap<'indexing>
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<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