pub struct DiagramRegistry {
providers: HashMap<String, Arc<dyn DiagramProvider + Send + Sync>>,
}Fields§
§providers: HashMap<String, Arc<dyn DiagramProvider + Send + Sync>>Implementations§
Source§impl DiagramRegistry
impl DiagramRegistry
pub fn new( capabilities: &Capabilities, config: &Config, browser_manager: Option<Arc<BrowserManager>>, ) -> Self
Sourcepub fn get(&self, name: &str) -> Option<Arc<dyn DiagramProvider + Send + Sync>>
pub fn get(&self, name: &str) -> Option<Arc<dyn DiagramProvider + Send + Sync>>
Returns the provider for a given diagram type, if available.
Sourcepub fn known_types(&self) -> Vec<String>
pub fn known_types(&self) -> Vec<String>
Returns the list of all registered diagram type names.
Auto Trait Implementations§
impl Freeze for DiagramRegistry
impl !RefUnwindSafe for DiagramRegistry
impl Send for DiagramRegistry
impl Sync for DiagramRegistry
impl Unpin for DiagramRegistry
impl !UnwindSafe for DiagramRegistry
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more