Skip to main content

Module

Struct Module 

Source
pub struct Module { /* private fields */ }

Implementations§

Source§

impl Module

Source

pub fn new() -> Module

Source

pub fn idl_analyze_errors(&self) -> HashMap<String, AnalyzerError>

Source

pub fn idl_parser_errors(&self) -> HashMap<String, ParserError>

Source

pub fn idl_document_text(&self, name: &str) -> Option<String>

Source

pub fn remove_idl_document(&mut self, name: &str) -> Result<(), ModuleError>

Source

pub fn replace_idl_document(&mut self, name: &str, text: &str)

Source

pub fn idl_parser( &self, name: &str, ) -> Option<Arc<Result<Parser, (Parser, ParserError)>>>

Source

pub fn idl_analyzer( &self, name: &str, ) -> Option<Arc<Result<Analyzer, AnalyzerError>>>

Source

pub fn idl_all_parsers( &self, names: &[&str], ) -> Option<Vec<Arc<Result<Parser, (Parser, ParserError)>>>>

Source

pub fn idl_all_analyzers( &self, names: &[&str], ) -> Result<Vec<Arc<Result<Analyzer, AnalyzerError>>>, PackageModuleError>

Source

pub fn idl_valid_names(&self) -> Result<Vec<String>, PackageModuleError>

Source

pub fn idl_documents_all_valid_names( &self, ) -> Result<Vec<String>, PackageModuleError>

Source

pub fn idl_documents_are_all_valid(&self) -> Result<(), PackageModuleError>

Source

pub fn idl_documents_names_not_in_package( &self, ) -> Result<Option<Vec<String>>, ModuleError>

Source

pub fn all_document_names(&self) -> Result<Vec<String>, ModuleError>

Source

pub fn update(&mut self) -> Result<(), ModuleError>

Source

pub fn ids_analyze_errors( &self, ) -> Result<Option<(String, AnalyzerError)>, ModuleError>

Source

pub fn ids_parser_errors( &self, ) -> Result<Option<(String, ParserError)>, ModuleError>

Source

pub fn ids_document_text( &self, name: &str, ) -> Result<Option<String>, ModuleError>

Source

pub fn ids_document_name(&self) -> Result<Option<String>, ModuleError>

Source

pub fn replace_ids_document(&mut self, name: &str, text: &str) -> Option<String>

Source

pub fn has_ids_document(&self) -> bool

Source

pub fn remove_ids_document(&mut self, name: &str) -> Result<(), ModuleError>

Source

pub fn update_ids_analyzer(&mut self) -> Result<(), ModuleError>

Source

pub fn ids_parser( &self, ) -> Result<Arc<Result<Parser, (Parser, ParserError)>>, ModuleError>

Source

pub fn ids_analyzer( &self, ) -> Result<Arc<Result<Analyzer, AnalyzerError>>, ModuleError>

Source

pub fn package_name(&self) -> Result<String, ModuleError>

Trait Implementations§

Source§

impl Debug for Module

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Module

Source§

fn default() -> Module

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.