pub struct NameResolver {
pub namespaces: HashMap<u64, String>,
pub dictionaries: HashMap<u64, ResolvedDictionary>,
pub sumtypes: HashMap<u64, ResolvedSumType>,
}Fields§
§namespaces: HashMap<u64, String>§dictionaries: HashMap<u64, ResolvedDictionary>§sumtypes: HashMap<u64, ResolvedSumType>Implementations§
Source§impl NameResolver
impl NameResolver
pub fn empty() -> Self
pub fn dictionary(&self, id: u64) -> Option<&ResolvedDictionary>
pub fn sumtype(&self, id: u64) -> Option<&ResolvedSumType>
pub fn sumtype_variant(&self, id: u64, tag: u8) -> Option<&ResolvedVariant>
pub fn sumtype_variant_name(&self, id: u64, tag: u8) -> Option<&str>
Auto Trait Implementations§
impl Freeze for NameResolver
impl RefUnwindSafe for NameResolver
impl Send for NameResolver
impl Sync for NameResolver
impl Unpin for NameResolver
impl UnsafeUnpin for NameResolver
impl UnwindSafe for NameResolver
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