Struct ErdDiagramGenerator

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

Trait Implementations§

Source§

impl Debug for ErdDiagramGenerator

Source§

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

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

impl Default for ErdDiagramGenerator

Source§

fn default() -> ErdDiagramGenerator

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

impl Generator for ErdDiagramGenerator

Source§

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>
where W: Write + Sized,

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>
where W: Write + Sized,

Generate from the given module into the provided writer. Note that this calls generate_with_options using Self::Options::default().
Source§

fn generate_to_string( &mut self, module: &Module, cache: &impl ModuleStore, options: Self::Options, path: Option<PathBuf>, ) -> Result<String, Error>

Generate from the given module into a string.
Source§

fn generate_to_file( &mut self, module: &Module, cache: &impl ModuleStore, options: Self::Options, path: &PathBuf, ) -> Result<(), Error>

Generate from the given module into a file. Read more
Source§

impl SimpleModuleVisitor for ErdDiagramGenerator

Source§

fn module_start(&mut self, _: &Module) -> Result<bool, Error>

Called to denote the start of a Module instance. Read more
Source§

fn import_statement_start( &mut self, stmt: &ImportStatement, ) -> Result<bool, Error>

Called to denote the start of an ImportStatement instance. Read more
Source§

fn entity_start(&mut self, defn: &EntityDef) -> Result<bool, Error>

Called to denote the start of an EntityDef instance. Read more
Source§

fn datatype_start(&mut self, defn: &DatatypeDef) -> Result<bool, Error>

Called to denote the start of a DatatypeDef instance. Read more
Source§

fn enum_start(&mut self, defn: &EnumDef) -> Result<bool, Error>

Called to denote the start of an EnumDef instance. Read more
Source§

fn event_start(&mut self, defn: &EventDef) -> Result<bool, Error>

Called to denote the start of an EventDef instance. Read more
Source§

fn structure_start(&mut self, defn: &StructureDef) -> Result<bool, Error>

Called to denote the start of a StructureDef instance. Read more
Source§

fn identity_member_start(&mut self, member: &Member) -> Result<bool, Error>

Called to denote the start of an identity Member instance. Read more
Source§

fn member_start(&mut self, member: &Member) -> Result<bool, Error>

Called to denote the start of a Member instance. Read more
Source§

fn module_end(&mut self, _: &Module) -> Result<(), Error>

Called to denote the end of a Module instance. Read more
Source§

const INCLUDE_NESTED: Result<bool, Error> = _

Source§

const NO_NESTED: Result<bool, Error> = _

Source§

fn import_statement_end( &mut self, _thing: &ImportStatement, ) -> Result<(), Error>

Called to denote the end of an ImportStatement instance. Read more
Source§

fn module_import(&mut self, _thing: &ModuleImport) -> Result<(), Error>

Called to handle a ModuleImport instance. Read more
Source§

fn member_import(&mut self, _thing: &QualifiedIdentifier) -> Result<(), Error>

Called to handle a Qualifiedidentifier instance. Read more
Source§

fn annotation_start(&mut self, _thing: &Annotation) -> Result<bool, Error>

Called to denote the start of an Annotation instance. Read more
Source§

fn annotation_end(&mut self, _thing: &Annotation) -> Result<(), Error>

Called to denote the end of an Annotation instance. Read more
Source§

fn annotation_property( &mut self, _thing: &AnnotationProperty, ) -> Result<(), Error>

Called to handle a AnnotationProperty instance. Read more
Source§

fn informal_constraint( &mut self, _thing: &ControlledLanguageString, ) -> Result<(), Error>

Called to handle a ControlledLanguageString instance. Read more
Source§

fn formal_constraint(&mut self, _thing: &FormalConstraint) -> Result<(), Error>

Called to handle a FormalConstraint instance. Read more
Source§

fn definition_start(&mut self, _thing: &Definition) -> Result<bool, Error>

Called to denote the start of a Definition instance. Read more
Source§

fn definition_end(&mut self, _thing: &Definition) -> Result<(), Error>

Called to denote the end of a Definition instance. Read more
Source§

fn datatype_end(&mut self, _thing: &DatatypeDef) -> Result<(), Error>

Called to denote the end of a DatatypeDef instance. Read more
Source§

fn entity_end(&mut self, _thing: &EntityDef) -> Result<(), Error>

Called to denote the end of an EntityDef instance. Read more
Source§

fn enum_end(&mut self, _thing: &EnumDef) -> Result<(), Error>

Called to denote the end of an EnumDef instance. Read more
Source§

fn event_end(&mut self, _thing: &EventDef) -> Result<(), Error>

Called to denote the end of an EventDef instance. Read more
Source§

fn property_start(&mut self, _thing: &PropertyDef) -> Result<bool, Error>

Called to denote the start of a PropertyDev instance. Read more
Source§

fn property_end(&mut self, _thing: &PropertyDef) -> Result<(), Error>

Called to denote the end of a PropertyDef instance. Read more
Source§

fn rdf_start(&mut self, _thing: &RdfDef) -> Result<bool, Error>

Called to denote the start of a RdfDef instance. Read more
Source§

fn rdf_end(&mut self, _thing: &RdfDef) -> Result<(), Error>

Called to denote the end of a RdfDef instance. Read more
Source§

fn structure_end(&mut self, _thing: &StructureDef) -> Result<(), Error>

Called to denote the end of a StructureDef instance. Read more
Source§

fn union_start(&mut self, _thing: &UnionDef) -> Result<bool, Error>

Called to denote the start of an UnionDef instance. Read more
Source§

fn union_end(&mut self, _thing: &UnionDef) -> Result<(), Error>

Called to denote the end of an UnionDef instance. Read more
Source§

fn member_end(&mut self, _thing: &Member) -> Result<(), Error>

Called to denote the end of a Member instance. Read more
Source§

fn identity_member_end(&mut self, _thing: &Member) -> Result<(), Error>

Called to denote the end of an identity Member instance. Read more
Source§

fn member_definition_start(&mut self, _thing: &MemberDef) -> Result<bool, Error>

Called to denote the start of a MemberDef instance. Read more
Source§

fn member_definition_end(&mut self, _thing: &MemberDef) -> Result<(), Error>

Called to denote the end of a MemberDef instance. Read more
Source§

fn property_reference_start( &mut self, _thing: &IdentifierReference, ) -> Result<bool, Error>

Called to denote the start of a member reference IdentifierReference instance. Read more
Source§

fn property_reference_end( &mut self, _thing: &IdentifierReference, ) -> Result<(), Error>

Called to denote the end of a member reference IdentifierReference instance. Read more
Source§

fn value_variant_start(&mut self, _thing: &ValueVariant) -> Result<bool, Error>

Called to denote the start of a ValueVariant instance. Read more
Source§

fn value_variant_end(&mut self, _thing: &ValueVariant) -> Result<(), Error>

Called to denote the end of a ValueVariant instance. Read more
Source§

fn type_variant_start(&mut self, _thing: &TypeVariant) -> Result<bool, Error>

Called to denote the start of a TypeVarian instance. Read more
Source§

fn type_variant_end(&mut self, _thing: &TypeVariant) -> Result<(), Error>

Called to denote the end of a TypeVariant instance. 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,