Struct wit_encoder::RenderOpts
source · pub struct RenderOpts {
pub indent_width: usize,
pub ident_count: usize,
}Fields§
§indent_width: usizewidth of each indent
ident_count: usizecurrent indent depth
Implementations§
Trait Implementations§
source§impl Clone for RenderOpts
impl Clone for RenderOpts
source§fn clone(&self) -> RenderOpts
fn clone(&self) -> RenderOpts
Returns a copy 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 RenderOpts
impl Debug for RenderOpts
source§impl Default for RenderOpts
impl Default for RenderOpts
source§impl Hash for RenderOpts
impl Hash for RenderOpts
source§impl Ord for RenderOpts
impl Ord for RenderOpts
source§fn cmp(&self, other: &RenderOpts) -> Ordering
fn cmp(&self, other: &RenderOpts) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RenderOpts
impl PartialEq for RenderOpts
source§fn eq(&self, other: &RenderOpts) -> bool
fn eq(&self, other: &RenderOpts) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for RenderOpts
impl PartialOrd for RenderOpts
source§fn partial_cmp(&self, other: &RenderOpts) -> Option<Ordering>
fn partial_cmp(&self, other: &RenderOpts) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for RenderOpts
impl StructuralPartialEq for RenderOpts
Auto Trait Implementations§
impl Freeze for RenderOpts
impl RefUnwindSafe for RenderOpts
impl Send for RenderOpts
impl Sync for RenderOpts
impl Unpin for RenderOpts
impl UnwindSafe for RenderOpts
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