Struct wit_encoder::RenderOpts
source · pub struct RenderOpts {
pub indent_width: usize,
pub ident_count: usize,
}
Fields§
§indent_width: usize
width of each indent
ident_count: usize
current 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)