Struct lang_util::node::NodeDisplayWrapper[][src]

pub struct NodeDisplayWrapper<'a, T: ?Sized> { /* fields omitted */ }

A wrapper for a syntax node to be displayed

Implementations

impl NodeDisplayWrapper<'static, str>[src]

pub fn new(name: &'static str, level: usize) -> Self[src]

Create a new NodeDisplayWrapper

Parameters

  • name: name of the node being displayed
  • level: current indentation level

impl<'a, T> NodeDisplayWrapper<'a, T>[src]

pub fn set_level(self, level: usize) -> Self[src]

Set the level of this display wrapper

Parameters

  • level: new indentation level

Returns

New display wrapper with the updated level.

Trait Implementations

impl<'a, T: Clone + ?Sized> Clone for NodeDisplayWrapper<'a, T>[src]

impl<'a, T: Copy + ?Sized> Copy for NodeDisplayWrapper<'a, T>[src]

impl Display for NodeDisplayWrapper<'static, str>[src]

impl<T: NodeDisplay> Display for NodeDisplayWrapper<'_, T>[src]

Auto Trait Implementations

impl<'a, T: ?Sized> RefUnwindSafe for NodeDisplayWrapper<'a, T> where
    T: RefUnwindSafe

impl<'a, T: ?Sized> Send for NodeDisplayWrapper<'a, T> where
    T: Sync

impl<'a, T: ?Sized> Sync for NodeDisplayWrapper<'a, T> where
    T: Sync

impl<'a, T: ?Sized> Unpin for NodeDisplayWrapper<'a, T>

impl<'a, T: ?Sized> UnwindSafe for NodeDisplayWrapper<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

type Err = Infallible

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.