pub struct ModuleReference {
pub name: String,
pub module_identifier: Option<DefinitiveIdentifier>,
pub encoding_reference_default: Option<EncodingReferenceDefault>,
pub tagging_environment: TaggingEnvironment,
pub extensibility_environment: ExtensibilityEnvironment,
pub imports: Vec<Import>,
pub exports: Option<Exports>,
}
Expand description
Represents a module header as specified in Rec. ITU-T X.680 (02/2021) § 13
Fields§
§name: String
§module_identifier: Option<DefinitiveIdentifier>
§encoding_reference_default: Option<EncodingReferenceDefault>
§tagging_environment: TaggingEnvironment
§extensibility_environment: ExtensibilityEnvironment
§imports: Vec<Import>
§exports: Option<Exports>
Implementations§
Source§impl ModuleReference
impl ModuleReference
Sourcepub fn find_import(&self, identifier: &str) -> Option<&String>
pub fn find_import(&self, identifier: &str) -> Option<&String>
Returns an import that matches a given identifier, if present.
Trait Implementations§
Source§impl Clone for ModuleReference
impl Clone for ModuleReference
Source§fn clone(&self) -> ModuleReference
fn clone(&self) -> ModuleReference
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModuleReference
impl Debug for ModuleReference
Source§impl From<(&str, Option<DefinitiveIdentifier>, Option<(Option<EncodingReferenceDefault>, TaggingEnvironment, ExtensibilityEnvironment)>, Option<Exports>, Option<Vec<Import>>)> for ModuleReference
impl From<(&str, Option<DefinitiveIdentifier>, Option<(Option<EncodingReferenceDefault>, TaggingEnvironment, ExtensibilityEnvironment)>, Option<Exports>, Option<Vec<Import>>)> for ModuleReference
Source§fn from(
value: (&str, Option<DefinitiveIdentifier>, Option<(Option<EncodingReferenceDefault>, TaggingEnvironment, ExtensibilityEnvironment)>, Option<Exports>, Option<Vec<Import>>),
) -> Self
fn from( value: (&str, Option<DefinitiveIdentifier>, Option<(Option<EncodingReferenceDefault>, TaggingEnvironment, ExtensibilityEnvironment)>, Option<Exports>, Option<Vec<Import>>), ) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModuleReference
impl PartialEq for ModuleReference
impl StructuralPartialEq for ModuleReference
Auto Trait Implementations§
impl Freeze for ModuleReference
impl RefUnwindSafe for ModuleReference
impl Send for ModuleReference
impl Sync for ModuleReference
impl Unpin for ModuleReference
impl UnwindSafe for ModuleReference
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)