pub struct HandlerMap { /* private fields */ }Implementations§
Source§impl HandlerMap
impl HandlerMap
pub fn new(components: Vec<NamespaceHandler>) -> Result<Self, InterpreterError>
pub const fn inner(&self) -> &HashMap<String, NamespaceHandler>
pub fn component_signatures(&self) -> HashMap<String, ComponentSignature>
pub fn get(&self, namespace: &str) -> Option<&NamespaceHandler>
pub fn has(&self, namespace: &str) -> bool
pub fn add( &mut self, component: NamespaceHandler, ) -> Result<(), InterpreterError>
Trait Implementations§
Source§impl Debug for HandlerMap
impl Debug for HandlerMap
Auto Trait Implementations§
impl !RefUnwindSafe for HandlerMap
impl !UnwindSafe for HandlerMap
impl Freeze for HandlerMap
impl Send for HandlerMap
impl Sync for HandlerMap
impl Unpin for HandlerMap
impl UnsafeUnpin for HandlerMap
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<S> ConditionallySend for Swhere
S: Send + 'static,
impl<S> ConditionallySendSync for S
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> 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