pub struct TypedInstanceDocument { /* private fields */ }Expand description
A typed representation of an XBRL instance document.
Implementations§
Source§impl TypedInstanceDocument
impl TypedInstanceDocument
Sourcepub fn from_instance(
instance: InstanceDocument,
taxonomy: &TaxonomySet,
) -> Result<Self, XbrlError>
pub fn from_instance( instance: InstanceDocument, taxonomy: &TaxonomySet, ) -> Result<Self, XbrlError>
Converts a raw InstanceDocument into a TypedInstanceDocument where
Facts are replaced by TypedFacts.
pub fn facts(&self) -> &[TypedFact]
pub fn contexts(&self) -> &HashMap<ContextId, Context>
pub fn units(&self) -> &HashMap<UnitId, Unit>
pub fn schema_refs(&self) -> &[String]
pub fn role_refs(&self) -> &[String]
pub fn arcrole_refs(&self) -> &[String]
pub fn namespaces(&self) -> &HashMap<NamespacePrefix, NamespaceUri>
pub fn footnote_links(&self) -> &[FootnoteLink]
Trait Implementations§
Source§impl Clone for TypedInstanceDocument
impl Clone for TypedInstanceDocument
Source§fn clone(&self) -> TypedInstanceDocument
fn clone(&self) -> TypedInstanceDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for TypedInstanceDocument
impl RefUnwindSafe for TypedInstanceDocument
impl Send for TypedInstanceDocument
impl Sync for TypedInstanceDocument
impl Unpin for TypedInstanceDocument
impl UnsafeUnpin for TypedInstanceDocument
impl UnwindSafe for TypedInstanceDocument
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