Struct ezno_parser::TypeDefinitionModule
source · pub struct TypeDefinitionModule {
pub declarations: Vec<TypeDefinitionModuleStatement>,
}
Fields§
§declarations: Vec<TypeDefinitionModuleStatement>
Implementations§
source§impl TypeDefinitionModule
impl TypeDefinitionModule
pub fn from_string( source: String, settings: ParseSettings, source_id: SourceId, cursors: Vec<(usize, EmptyCursorId)> ) -> ParseResult<(Self, ParsingState)>
pub fn from_file( path: impl AsRef<Path>, settings: ParseSettings, cursors: Vec<(usize, EmptyCursorId)> ) -> Result<(Self, ParsingState), FromFileError>
Trait Implementations§
source§impl Clone for TypeDefinitionModule
impl Clone for TypeDefinitionModule
source§fn clone(&self) -> TypeDefinitionModule
fn clone(&self) -> TypeDefinitionModule
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 TypeDefinitionModule
impl Debug for TypeDefinitionModule
source§impl PartialEq<TypeDefinitionModule> for TypeDefinitionModule
impl PartialEq<TypeDefinitionModule> for TypeDefinitionModule
source§fn eq(&self, other: &TypeDefinitionModule) -> bool
fn eq(&self, other: &TypeDefinitionModule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.