Struct lang_util::node::NodeDisplayWrapper [−][src]
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 displayedlevel
: 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]
fn clone(&self) -> NodeDisplayWrapper<'a, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for NodeDisplayWrapper<'a, T> where
T: Sync,
T: Sync,
impl<'a, T: ?Sized> Sync for NodeDisplayWrapper<'a, T> where
T: Sync,
T: Sync,
impl<'a, T: ?Sized> Unpin for NodeDisplayWrapper<'a, T>
impl<'a, T: ?Sized> UnwindSafe for NodeDisplayWrapper<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
type Err = Infallible
pub fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,