pub struct Style<'a> { /* private fields */ }
Expand description
Used by Iterator
to format Element.path
and
determine whether or not to yield object and/or array values
Implementations§
Source§impl<'a> Style<'a>
impl<'a> Style<'a>
pub fn object_format(&self, base_path: &String, key: &String) -> String
pub fn array_format(&self, base_path: &String, index: usize) -> String
pub fn should_skip_object_parents(&self) -> bool
pub fn should_skip_array_parents(&self) -> bool
Trait Implementations§
Source§impl<'a> From<PresetStyle> for Style<'a>
impl<'a> From<PresetStyle> for Style<'a>
Source§fn from(style: PresetStyle) -> Style<'a>
fn from(style: PresetStyle) -> Style<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Style<'a>
impl<'a> RefUnwindSafe for Style<'a>
impl<'a> Send for Style<'a>
impl<'a> Sync for Style<'a>
impl<'a> Unpin for Style<'a>
impl<'a> UnwindSafe for Style<'a>
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