pub struct DetectorRegistry { /* private fields */ }Implementations§
Source§impl DetectorRegistry
impl DetectorRegistry
pub fn new() -> Self
pub fn add(&mut self, detector: Detector)
pub fn add_fn(&mut self, id: &'static str, detector: DetectorFn)
pub fn detect_type( &self, text: &str, config: &mut MermaidConfig, ) -> Result<&'static str>
Sourcepub fn detect_type_precleaned(
&self,
text: &str,
config: &mut MermaidConfig,
) -> Result<&'static str>
pub fn detect_type_precleaned( &self, text: &str, config: &mut MermaidConfig, ) -> Result<&'static str>
Detects a diagram type assuming the input is already pre-cleaned:
no front-matter, no directives, and no Mermaid %% comments.
pub fn default_mermaid_11_12_2_full() -> Self
pub fn default_mermaid_11_12_2_tiny() -> Self
pub fn default_mermaid_11_12_2() -> Self
Trait Implementations§
Source§impl Clone for DetectorRegistry
impl Clone for DetectorRegistry
Source§fn clone(&self) -> DetectorRegistry
fn clone(&self) -> DetectorRegistry
Returns a duplicate 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 DetectorRegistry
impl Debug for DetectorRegistry
Auto Trait Implementations§
impl Freeze for DetectorRegistry
impl RefUnwindSafe for DetectorRegistry
impl Send for DetectorRegistry
impl Sync for DetectorRegistry
impl Unpin for DetectorRegistry
impl UnsafeUnpin for DetectorRegistry
impl UnwindSafe for DetectorRegistry
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