pub struct IndentLevel(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl IndentLevel
impl IndentLevel
pub fn zero() -> IndentLevel
pub fn is_zero(&self) -> bool
pub fn from_element(element: &SyntaxElement) -> IndentLevel
pub fn from_node(node: &SyntaxNode) -> IndentLevel
pub fn from_token(token: &SyntaxToken) -> IndentLevel
Trait Implementations§
Source§impl Add<u8> for IndentLevel
impl Add<u8> for IndentLevel
Source§type Output = IndentLevel
type Output = IndentLevel
The resulting type after applying the
+ operator.Source§impl AddAssign<u8> for IndentLevel
impl AddAssign<u8> for IndentLevel
Source§fn add_assign(&mut self, rhs: u8)
fn add_assign(&mut self, rhs: u8)
Performs the
+= operation. Read moreSource§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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndentLevel
Source§impl Debug for IndentLevel
impl Debug for IndentLevel
Source§impl Display for IndentLevel
impl Display for IndentLevel
impl Eq for IndentLevel
Source§impl From<u8> for IndentLevel
impl From<u8> for IndentLevel
Source§fn from(level: u8) -> IndentLevel
fn from(level: u8) -> IndentLevel
Converts to this type from the input type.
Source§impl PartialEq for IndentLevel
impl PartialEq for IndentLevel
Source§fn eq(&self, other: &IndentLevel) -> bool
fn eq(&self, other: &IndentLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more