Skip to main content

ResolvedDocument

Struct ResolvedDocument 

Source
pub struct ResolvedDocument {
    pub enums: BTreeMap<String, EnumType>,
    pub measurands: BTreeMap<String, MeasurandDefinition>,
    pub imports: BTreeMap<String, ModDefDocument>,
}
Expand description

A document’s visible symbol tables after import resolution: local symbols first, then imported ones (alias-prefixed as <alias>:<id>, never overriding an existing entry).

Fields§

§enums: BTreeMap<String, EnumType>§measurands: BTreeMap<String, MeasurandDefinition>§imports: BTreeMap<String, ModDefDocument>

Imported documents keyed by uri.

Auto Trait Implementations§

§

impl Forget for ResolvedDocument

§

impl Freeze for ResolvedDocument

§

impl Move for ResolvedDocument

§

impl RefUnwindSafe for ResolvedDocument

§

impl Send for ResolvedDocument
where NodeRef<Owned, String, EnumType, LeafOrInternal>: Send, BoxRaw<(String, EnumType)>: Send, NodeRef<Owned, String, MeasurandDefinition, LeafOrInternal>: Send, BoxRaw<(String, MeasurandDefinition)>: Send, NodeRef<Owned, String, ModDefDocument, LeafOrInternal>: Send, BoxRaw<(String, ModDefDocument)>: Send,

§

impl Sync for ResolvedDocument
where NodeRef<Owned, String, EnumType, LeafOrInternal>: Sync, BoxRaw<(String, EnumType)>: Sync, NodeRef<Owned, String, MeasurandDefinition, LeafOrInternal>: Sync, BoxRaw<(String, MeasurandDefinition)>: Sync, NodeRef<Owned, String, ModDefDocument, LeafOrInternal>: Sync, BoxRaw<(String, ModDefDocument)>: Sync,

§

impl Unpin for ResolvedDocument

§

impl UnsafeUnpin for ResolvedDocument

§

impl UnwindSafe for ResolvedDocument

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.