pub struct ErdDiagramGenerator { /* private fields */ }
Trait Implementations§
Source§impl Debug for ErdDiagramGenerator
impl Debug for ErdDiagramGenerator
Source§impl Default for ErdDiagramGenerator
impl Default for ErdDiagramGenerator
Source§fn default() -> ErdDiagramGenerator
fn default() -> ErdDiagramGenerator
Returns the “default value” for a type. Read more
Source§impl Generator for ErdDiagramGenerator
impl Generator for ErdDiagramGenerator
type Options = ErdDiagramOptions
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 ErdDiagramGenerator
impl SimpleModuleVisitor for ErdDiagramGenerator
Source§fn module_start(&mut self, _: &Module) -> Result<bool, Error>
fn module_start(&mut self, _: &Module) -> Result<bool, Error>
Called to denote the start of a
Module
instance. Read moreSource§fn import_statement_start(
&mut self,
stmt: &ImportStatement,
) -> Result<bool, Error>
fn import_statement_start( &mut self, stmt: &ImportStatement, ) -> Result<bool, Error>
Called to denote the start of an
ImportStatement
instance. Read moreSource§fn entity_start(&mut self, defn: &EntityDef) -> Result<bool, Error>
fn entity_start(&mut self, defn: &EntityDef) -> Result<bool, Error>
Called to denote the start of an
EntityDef
instance. Read moreSource§fn datatype_start(&mut self, defn: &DatatypeDef) -> Result<bool, Error>
fn datatype_start(&mut self, defn: &DatatypeDef) -> Result<bool, Error>
Called to denote the start of a
DatatypeDef
instance. Read moreSource§fn enum_start(&mut self, defn: &EnumDef) -> Result<bool, Error>
fn enum_start(&mut self, defn: &EnumDef) -> Result<bool, Error>
Called to denote the start of an
EnumDef
instance. Read moreSource§fn event_start(&mut self, defn: &EventDef) -> Result<bool, Error>
fn event_start(&mut self, defn: &EventDef) -> Result<bool, Error>
Called to denote the start of an
EventDef
instance. Read moreSource§fn structure_start(&mut self, defn: &StructureDef) -> Result<bool, Error>
fn structure_start(&mut self, defn: &StructureDef) -> Result<bool, Error>
Called to denote the start of a
StructureDef
instance. Read moreSource§fn identity_member_start(&mut self, member: &Member) -> Result<bool, Error>
fn identity_member_start(&mut self, member: &Member) -> Result<bool, Error>
Called to denote the start of an identity
Member
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 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 moreconst INCLUDE_NESTED: Result<bool, Error> = _
const NO_NESTED: Result<bool, Error> = _
Source§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 annotation_property(
&mut self,
_thing: &AnnotationProperty,
) -> Result<(), Error>
fn annotation_property( &mut self, _thing: &AnnotationProperty, ) -> Result<(), Error>
Called to handle a
AnnotationProperty
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 datatype_end(&mut self, _thing: &DatatypeDef) -> Result<(), Error>
fn datatype_end(&mut self, _thing: &DatatypeDef) -> Result<(), Error>
Called to denote the end of a
DatatypeDef
instance. Read moreSource§fn entity_end(&mut self, _thing: &EntityDef) -> Result<(), Error>
fn entity_end(&mut self, _thing: &EntityDef) -> Result<(), Error>
Called to denote the end of an
EntityDef
instance. Read moreSource§fn enum_end(&mut self, _thing: &EnumDef) -> Result<(), Error>
fn enum_end(&mut self, _thing: &EnumDef) -> Result<(), Error>
Called to denote the end of an
EnumDef
instance. Read moreSource§fn event_end(&mut self, _thing: &EventDef) -> Result<(), Error>
fn event_end(&mut self, _thing: &EventDef) -> Result<(), Error>
Called to denote the end of an
EventDef
instance. Read moreSource§fn property_start(&mut self, _thing: &PropertyDef) -> Result<bool, Error>
fn property_start(&mut self, _thing: &PropertyDef) -> Result<bool, Error>
Called to denote the start of a
PropertyDev
instance. Read moreSource§fn property_end(&mut self, _thing: &PropertyDef) -> Result<(), Error>
fn property_end(&mut self, _thing: &PropertyDef) -> Result<(), Error>
Called to denote the end of a
PropertyDef
instance. Read moreSource§fn rdf_start(&mut self, _thing: &RdfDef) -> Result<bool, Error>
fn rdf_start(&mut self, _thing: &RdfDef) -> Result<bool, Error>
Called to denote the start of a
RdfDef
instance. Read moreSource§fn rdf_end(&mut self, _thing: &RdfDef) -> Result<(), Error>
fn rdf_end(&mut self, _thing: &RdfDef) -> Result<(), Error>
Called to denote the end of a
RdfDef
instance. Read moreSource§fn structure_end(&mut self, _thing: &StructureDef) -> Result<(), Error>
fn structure_end(&mut self, _thing: &StructureDef) -> Result<(), Error>
Called to denote the end of a
StructureDef
instance. Read moreSource§fn union_start(&mut self, _thing: &UnionDef) -> Result<bool, Error>
fn union_start(&mut self, _thing: &UnionDef) -> Result<bool, Error>
Called to denote the start of an
UnionDef
instance. Read moreSource§fn union_end(&mut self, _thing: &UnionDef) -> Result<(), Error>
fn union_end(&mut self, _thing: &UnionDef) -> Result<(), Error>
Called to denote the end of an
UnionDef
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_start(&mut self, _thing: &ValueVariant) -> Result<bool, Error>
fn value_variant_start(&mut self, _thing: &ValueVariant) -> Result<bool, Error>
Called to denote the start of a
ValueVariant
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_start(&mut self, _thing: &TypeVariant) -> Result<bool, Error>
fn type_variant_start(&mut self, _thing: &TypeVariant) -> Result<bool, Error>
Called to denote the start of a
TypeVarian
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 ErdDiagramGenerator
impl RefUnwindSafe for ErdDiagramGenerator
impl Send for ErdDiagramGenerator
impl Sync for ErdDiagramGenerator
impl Unpin for ErdDiagramGenerator
impl UnwindSafe for ErdDiagramGenerator
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