pub struct IndentLevel(/* private fields */);
Implementations§
Source§impl IndentLevel
impl IndentLevel
pub fn for_ascii_line( src: impl IntoIterator<Item = u8>, tab_width: u8, ) -> IndentLevel
pub fn for_line( src: impl IntoIterator<Item = char>, tab_width: u8, ) -> IndentLevel
Trait Implementations§
Source§impl Clone for IndentLevel
impl Clone for IndentLevel
Source§fn clone(&self) -> IndentLevel
fn clone(&self) -> IndentLevel
Returns a duplicate 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 IndentLevel
impl Debug for IndentLevel
Source§impl Hash for IndentLevel
impl Hash for IndentLevel
Source§impl PartialEq for IndentLevel
impl PartialEq for IndentLevel
Source§impl PartialOrd for IndentLevel
impl PartialOrd for IndentLevel
impl Copy for IndentLevel
impl Eq for IndentLevel
impl StructuralPartialEq for IndentLevel
Auto Trait Implementations§
impl Freeze for IndentLevel
impl RefUnwindSafe for IndentLevel
impl Send for IndentLevel
impl Sync for IndentLevel
impl Unpin for IndentLevel
impl UnwindSafe for IndentLevel
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