pub struct UmlDiagramGenerator { /* private fields */ }
Trait Implementations§
Source§impl Clone for UmlDiagramGenerator
impl Clone for UmlDiagramGenerator
Source§fn clone(&self) -> UmlDiagramGenerator
fn clone(&self) -> UmlDiagramGenerator
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UmlDiagramGenerator
impl Debug for UmlDiagramGenerator
Source§impl Default for UmlDiagramGenerator
impl Default for UmlDiagramGenerator
Source§fn default() -> UmlDiagramGenerator
fn default() -> UmlDiagramGenerator
Returns the “default value” for a type. Read more
Source§impl Generator for UmlDiagramGenerator
impl Generator for UmlDiagramGenerator
type Options = UmlDiagramOptions
Source§fn generate_with_options<W>(
&mut self,
module: &Module,
_: &impl ModuleStore,
options: Self::Options,
_: Option<PathBuf>,
writer: &mut W,
) -> Result<(), Error>
fn generate_with_options<W>( &mut self, module: &Module, _: &impl ModuleStore, options: Self::Options, _: Option<PathBuf>, writer: &mut W, ) -> Result<(), Error>
Generate from the given module into the provided writer.
Source§fn generate<W>(
&mut self,
module: &Module,
cache: &impl ModuleStore,
path: Option<PathBuf>,
writer: &mut W,
) -> Result<(), Error>
fn generate<W>( &mut self, module: &Module, cache: &impl ModuleStore, path: Option<PathBuf>, writer: &mut W, ) -> Result<(), Error>
Generate from the given module into the provided writer. Note that this calls
generate_with_options
using Self::Options::default()
.Source§impl SimpleModuleVisitor for UmlDiagramGenerator
impl SimpleModuleVisitor for UmlDiagramGenerator
Source§fn module_start(&mut self, module: &Module) -> Result<bool, Error>
fn module_start(&mut self, module: &Module) -> Result<bool, Error>
Called to denote the start of a
Module
instance. Read moreSource§fn module_end(&mut self, _: &Module) -> Result<(), Error>
fn module_end(&mut self, _: &Module) -> Result<(), Error>
Called to denote the end of a
Module
instance. Read moreSource§fn annotation_property(
&mut self,
property: &AnnotationProperty,
) -> Result<(), Error>
fn annotation_property( &mut self, property: &AnnotationProperty, ) -> Result<(), Error>
Called to handle a
AnnotationProperty
instance. Read moreSource§fn datatype_start(&mut self, datatype: &DatatypeDef) -> Result<bool, Error>
fn datatype_start(&mut self, datatype: &DatatypeDef) -> Result<bool, Error>
Called to denote the start of a
DatatypeDef
instance. Read moreSource§fn datatype_end(&mut self, datatype: &DatatypeDef) -> Result<(), Error>
fn datatype_end(&mut self, datatype: &DatatypeDef) -> Result<(), Error>
Called to denote the end of a
DatatypeDef
instance. Read moreSource§fn entity_start(&mut self, entity: &EntityDef) -> Result<bool, Error>
fn entity_start(&mut self, entity: &EntityDef) -> Result<bool, Error>
Called to denote the start of an
EntityDef
instance. Read moreSource§fn entity_end(&mut self, entity: &EntityDef) -> Result<(), Error>
fn entity_end(&mut self, entity: &EntityDef) -> Result<(), Error>
Called to denote the end of an
EntityDef
instance. Read moreSource§fn enum_start(&mut self, an_enum: &EnumDef) -> Result<bool, Error>
fn enum_start(&mut self, an_enum: &EnumDef) -> Result<bool, Error>
Called to denote the start of an
EnumDef
instance. Read moreSource§fn enum_end(&mut self, an_enum: &EnumDef) -> Result<(), Error>
fn enum_end(&mut self, an_enum: &EnumDef) -> Result<(), Error>
Called to denote the end of an
EnumDef
instance. Read moreSource§fn event_start(&mut self, event: &EventDef) -> Result<bool, Error>
fn event_start(&mut self, event: &EventDef) -> Result<bool, Error>
Called to denote the start of an
EventDef
instance. Read moreSource§fn event_end(&mut self, event: &EventDef) -> Result<(), Error>
fn event_end(&mut self, event: &EventDef) -> Result<(), Error>
Called to denote the end of an
EventDef
instance. Read moreSource§fn property_start(&mut self, property: &PropertyDef) -> Result<bool, Error>
fn property_start(&mut self, property: &PropertyDef) -> Result<bool, Error>
Called to denote the start of a
PropertyDev
instance. Read moreSource§fn property_end(&mut self, property: &PropertyDef) -> Result<(), Error>
fn property_end(&mut self, property: &PropertyDef) -> Result<(), Error>
Called to denote the end of a
PropertyDef
instance. Read moreSource§fn structure_start(&mut self, structure: &StructureDef) -> Result<bool, Error>
fn structure_start(&mut self, structure: &StructureDef) -> Result<bool, Error>
Called to denote the start of a
StructureDef
instance. Read moreSource§fn structure_end(&mut self, structure: &StructureDef) -> Result<(), Error>
fn structure_end(&mut self, structure: &StructureDef) -> Result<(), Error>
Called to denote the end of a
StructureDef
instance. Read moreSource§fn rdf_start(&mut self, rdf: &RdfDef) -> Result<bool, Error>
fn rdf_start(&mut self, rdf: &RdfDef) -> Result<bool, Error>
Called to denote the start of a
RdfDef
instance. Read moreSource§fn rdf_end(&mut self, rdf: &RdfDef) -> Result<(), Error>
fn rdf_end(&mut self, rdf: &RdfDef) -> Result<(), Error>
Called to denote the end of a
RdfDef
instance. Read moreSource§fn union_start(&mut self, union: &UnionDef) -> Result<bool, Error>
fn union_start(&mut self, union: &UnionDef) -> Result<bool, Error>
Called to denote the start of an
UnionDef
instance. Read moreSource§fn union_end(&mut self, union: &UnionDef) -> Result<(), Error>
fn union_end(&mut self, union: &UnionDef) -> Result<(), Error>
Called to denote the end of an
UnionDef
instance. Read moreSource§fn member_start(&mut self, member: &Member) -> Result<bool, Error>
fn member_start(&mut self, member: &Member) -> Result<bool, Error>
Called to denote the start of a
Member
instance. Read moreSource§fn identity_member_start(&mut self, _thing: &Member) -> Result<bool, Error>
fn identity_member_start(&mut self, _thing: &Member) -> Result<bool, Error>
Called to denote the start of an identity
Member
instance. Read moreSource§fn value_variant_start(&mut self, variant: &ValueVariant) -> Result<bool, Error>
fn value_variant_start(&mut self, variant: &ValueVariant) -> Result<bool, Error>
Called to denote the start of a
ValueVariant
instance. Read moreSource§fn type_variant_start(&mut self, variant: &TypeVariant) -> Result<bool, Error>
fn type_variant_start(&mut self, variant: &TypeVariant) -> Result<bool, Error>
Called to denote the start of a
TypeVarian
instance. Read moreconst INCLUDE_NESTED: Result<bool, Error> = _
const NO_NESTED: Result<bool, Error> = _
Source§fn import_statement_start(
&mut self,
_thing: &ImportStatement,
) -> Result<bool, Error>
fn import_statement_start( &mut self, _thing: &ImportStatement, ) -> Result<bool, Error>
Called to denote the start of an
ImportStatement
instance. Read moreSource§fn import_statement_end(
&mut self,
_thing: &ImportStatement,
) -> Result<(), Error>
fn import_statement_end( &mut self, _thing: &ImportStatement, ) -> Result<(), Error>
Called to denote the end of an
ImportStatement
instance. Read moreSource§fn module_import(&mut self, _thing: &ModuleImport) -> Result<(), Error>
fn module_import(&mut self, _thing: &ModuleImport) -> Result<(), Error>
Called to handle a
ModuleImport
instance. Read moreSource§fn member_import(&mut self, _thing: &QualifiedIdentifier) -> Result<(), Error>
fn member_import(&mut self, _thing: &QualifiedIdentifier) -> Result<(), Error>
Called to handle a
Qualifiedidentifier
instance. Read moreSource§fn annotation_start(&mut self, _thing: &Annotation) -> Result<bool, Error>
fn annotation_start(&mut self, _thing: &Annotation) -> Result<bool, Error>
Called to denote the start of an
Annotation
instance. Read moreSource§fn annotation_end(&mut self, _thing: &Annotation) -> Result<(), Error>
fn annotation_end(&mut self, _thing: &Annotation) -> Result<(), Error>
Called to denote the end of an
Annotation
instance. Read moreSource§fn informal_constraint(
&mut self,
_thing: &ControlledLanguageString,
) -> Result<(), Error>
fn informal_constraint( &mut self, _thing: &ControlledLanguageString, ) -> Result<(), Error>
Called to handle a
ControlledLanguageString
instance. Read moreSource§fn formal_constraint(&mut self, _thing: &FormalConstraint) -> Result<(), Error>
fn formal_constraint(&mut self, _thing: &FormalConstraint) -> Result<(), Error>
Called to handle a
FormalConstraint
instance. Read moreSource§fn definition_start(&mut self, _thing: &Definition) -> Result<bool, Error>
fn definition_start(&mut self, _thing: &Definition) -> Result<bool, Error>
Called to denote the start of a
Definition
instance. Read moreSource§fn definition_end(&mut self, _thing: &Definition) -> Result<(), Error>
fn definition_end(&mut self, _thing: &Definition) -> Result<(), Error>
Called to denote the end of a
Definition
instance. Read moreSource§fn member_end(&mut self, _thing: &Member) -> Result<(), Error>
fn member_end(&mut self, _thing: &Member) -> Result<(), Error>
Called to denote the end of a
Member
instance. Read moreSource§fn identity_member_end(&mut self, _thing: &Member) -> Result<(), Error>
fn identity_member_end(&mut self, _thing: &Member) -> Result<(), Error>
Called to denote the end of an identity
Member
instance. Read moreSource§fn member_definition_start(&mut self, _thing: &MemberDef) -> Result<bool, Error>
fn member_definition_start(&mut self, _thing: &MemberDef) -> Result<bool, Error>
Called to denote the start of a
MemberDef
instance. Read moreSource§fn member_definition_end(&mut self, _thing: &MemberDef) -> Result<(), Error>
fn member_definition_end(&mut self, _thing: &MemberDef) -> Result<(), Error>
Called to denote the end of a
MemberDef
instance. Read moreSource§fn property_reference_start(
&mut self,
_thing: &IdentifierReference,
) -> Result<bool, Error>
fn property_reference_start( &mut self, _thing: &IdentifierReference, ) -> Result<bool, Error>
Called to denote the start of a member reference
IdentifierReference
instance. Read moreSource§fn property_reference_end(
&mut self,
_thing: &IdentifierReference,
) -> Result<(), Error>
fn property_reference_end( &mut self, _thing: &IdentifierReference, ) -> Result<(), Error>
Called to denote the end of a member reference
IdentifierReference
instance. Read moreSource§fn value_variant_end(&mut self, _thing: &ValueVariant) -> Result<(), Error>
fn value_variant_end(&mut self, _thing: &ValueVariant) -> Result<(), Error>
Called to denote the end of a
ValueVariant
instance. Read moreSource§fn type_variant_end(&mut self, _thing: &TypeVariant) -> Result<(), Error>
fn type_variant_end(&mut self, _thing: &TypeVariant) -> Result<(), Error>
Called to denote the end of a
TypeVariant
instance. Read moreAuto Trait Implementations§
impl Freeze for UmlDiagramGenerator
impl RefUnwindSafe for UmlDiagramGenerator
impl Send for UmlDiagramGenerator
impl Sync for UmlDiagramGenerator
impl Unpin for UmlDiagramGenerator
impl UnwindSafe for UmlDiagramGenerator
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