Struct ra_ap_syntax::ast::edit::IndentLevel
source · pub struct IndentLevel(pub u8);
Tuple Fields
0: u8
Implementations
sourceimpl IndentLevel
impl IndentLevel
pub fn single() -> 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
sourceimpl Add<u8> for IndentLevel
impl Add<u8> for IndentLevel
type Output = IndentLevel
type Output = IndentLevel
The resulting type after applying the
+
operator.sourcefn add(self, rhs: u8) -> IndentLevel
fn add(self, rhs: u8) -> IndentLevel
Performs the
+
operation. Read moresourceimpl Clone for IndentLevel
impl Clone for IndentLevel
sourcefn clone(&self) -> IndentLevel
fn clone(&self) -> IndentLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for IndentLevel
impl Debug for IndentLevel
sourceimpl Display for IndentLevel
impl Display for IndentLevel
sourceimpl From<u8> for IndentLevel
impl From<u8> for IndentLevel
sourcefn from(level: u8) -> IndentLevel
fn from(level: u8) -> IndentLevel
Converts to this type from the input type.
impl Copy for IndentLevel
Auto Trait Implementations
impl RefUnwindSafe for IndentLevel
impl Send for IndentLevel
impl Sync for IndentLevel
impl Unpin for IndentLevel
impl UnwindSafe for IndentLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more