Enum robot_description_builder::to_rdf::XMLMode
source · pub enum XMLMode {
NoIndent,
Indent(char, usize),
}
Expand description
A setting for configuring the style of the generated XML representation.
Variants§
NoIndent
No indentation in the output XML
Indent(char, usize)
Indentation as specified in the output XML
The indentation level will increase with every opening XML element and decreases when a XML element is closed.
char
is the character will be used to indent the elements.usize
is the amount of character which will be used per indent level.
Trait Implementations§
source§impl PartialEq<XMLMode> for XMLMode
impl PartialEq<XMLMode> for XMLMode
impl Copy for XMLMode
impl Eq for XMLMode
impl StructuralEq for XMLMode
impl StructuralPartialEq for XMLMode
Auto Trait Implementations§
impl RefUnwindSafe for XMLMode
impl Send for XMLMode
impl Sync for XMLMode
impl Unpin for XMLMode
impl UnwindSafe for XMLMode
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.