pub struct ProviderReasonArena { /* private fields */ }Expand description
Per-run reason interning. This is deliberately separate from compiled
schema/config: host labels are run data, while static Rust labels remain
borrowed &'static str. One compiled-selector execution owns this arena
and lends a mutable reference to provider cursors only while they normalize
a pull, keeping shared ownership out of the move hot path.
Implementations§
Source§impl ProviderReasonArena
impl ProviderReasonArena
pub fn intern(&mut self, label: Arc<str>) -> ProviderReasonId
pub fn label(&self, id: ProviderReasonId) -> &str
Trait Implementations§
Source§impl Debug for ProviderReasonArena
impl Debug for ProviderReasonArena
Source§impl Default for ProviderReasonArena
impl Default for ProviderReasonArena
Source§fn default() -> ProviderReasonArena
fn default() -> ProviderReasonArena
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProviderReasonArena
impl RefUnwindSafe for ProviderReasonArena
impl Send for ProviderReasonArena
impl Sync for ProviderReasonArena
impl Unpin for ProviderReasonArena
impl UnsafeUnpin for ProviderReasonArena
impl UnwindSafe for ProviderReasonArena
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> 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