pub struct CoreTypeParser { /* private fields */ }
Implementations§
source§impl CoreTypeParser
impl CoreTypeParser
pub fn parsers() -> Array<CoreTypeParser>
pub fn parser_by_name<S: BnStrCompatible>(name: S) -> Option<CoreTypeParser>
pub fn name(&self) -> BnString
Trait Implementations§
source§impl CoreArrayProvider for CoreTypeParser
impl CoreArrayProvider for CoreTypeParser
source§impl Default for CoreTypeParser
impl Default for CoreTypeParser
source§impl TypeParser for CoreTypeParser
impl TypeParser for CoreTypeParser
source§fn get_option_text(
&self,
option: TypeParserOption,
value: &str,
) -> Option<String>
fn get_option_text( &self, option: TypeParserOption, value: &str, ) -> Option<String>
Get the string representation of an option for passing to parse_type_*.
Returns a string representing the option if the parser supports it,
otherwise None Read more
source§fn preprocess_source(
&self,
source: &str,
file_name: &str,
platform: &Platform,
existing_types: &TypeContainer,
options: &[String],
include_dirs: &[String],
) -> Result<String, Vec<TypeParserError>>
fn preprocess_source( &self, source: &str, file_name: &str, platform: &Platform, existing_types: &TypeContainer, options: &[String], include_dirs: &[String], ) -> Result<String, Vec<TypeParserError>>
Preprocess a block of source, returning the source that would be parsed Read more
source§fn parse_types_from_source(
&self,
source: &str,
file_name: &str,
platform: &Platform,
existing_types: &TypeContainer,
options: &[String],
include_dirs: &[String],
auto_type_source: &str,
) -> Result<TypeParserResult, Vec<TypeParserError>>
fn parse_types_from_source( &self, source: &str, file_name: &str, platform: &Platform, existing_types: &TypeContainer, options: &[String], include_dirs: &[String], auto_type_source: &str, ) -> Result<TypeParserResult, Vec<TypeParserError>>
Parse an entire block of source into types, variables, and functions Read more
source§fn parse_type_string(
&self,
source: &str,
platform: &Platform,
existing_types: &TypeContainer,
) -> Result<QualifiedNameAndType, Vec<TypeParserError>>
fn parse_type_string( &self, source: &str, platform: &Platform, existing_types: &TypeContainer, ) -> Result<QualifiedNameAndType, Vec<TypeParserError>>
Parse a single type and name from a string containing their definition. Read more
Auto Trait Implementations§
impl Freeze for CoreTypeParser
impl RefUnwindSafe for CoreTypeParser
impl !Send for CoreTypeParser
impl !Sync for CoreTypeParser
impl Unpin for CoreTypeParser
impl UnwindSafe for CoreTypeParser
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