pub struct HtmlSchema { /* private fields */ }
Implementations§
Source§impl HtmlSchema
impl HtmlSchema
pub fn new() -> HtmlSchema
pub fn with_prefixmap(self, prefixmap: PrefixMap) -> Self
Sourcepub fn get_node_adding_label(&mut self, label: &str) -> (NodeId, bool)
pub fn get_node_adding_label(&mut self, label: &str) -> (NodeId, bool)
Tries to get a node from a label. If it exists returns the node and true, otherwise, adds the node and returns false
pub fn set_svg_schema(&mut self, svg_schema: &str)
pub fn add_component( &mut self, node: NodeId, component: HtmlShape, ) -> Result<(), ShEx2HtmlError>
pub fn shapes(&self) -> impl Iterator<Item = &HtmlShape>
pub fn shapes_mut(&mut self) -> impl Iterator<Item = &mut HtmlShape>
pub fn to_landing_html_schema( &self, config: &ShEx2HtmlConfig, ) -> LandingHtmlTemplate
Trait Implementations§
Source§impl Debug for HtmlSchema
impl Debug for HtmlSchema
Source§impl Default for HtmlSchema
impl Default for HtmlSchema
Source§fn default() -> HtmlSchema
fn default() -> HtmlSchema
Returns the “default value” for a type. Read more
Source§impl PartialEq for HtmlSchema
impl PartialEq for HtmlSchema
impl StructuralPartialEq for HtmlSchema
Auto Trait Implementations§
impl Freeze for HtmlSchema
impl RefUnwindSafe for HtmlSchema
impl Send for HtmlSchema
impl Sync for HtmlSchema
impl Unpin for HtmlSchema
impl UnwindSafe for HtmlSchema
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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