Struct lang_util::node::NodeDisplayWrapper
source · pub struct NodeDisplayWrapper<'a, T: ?Sized> {
node: &'a T,
current_level: usize,
}
Expand description
A wrapper for a syntax node to be displayed
Fields§
§node: &'a T
§current_level: usize
Implementations§
source§impl NodeDisplayWrapper<'static, str>
impl NodeDisplayWrapper<'static, str>
Trait Implementations§
source§impl<'a, T: Clone + ?Sized> Clone for NodeDisplayWrapper<'a, T>
impl<'a, T: Clone + ?Sized> Clone for NodeDisplayWrapper<'a, T>
source§fn clone(&self) -> NodeDisplayWrapper<'a, T>
fn clone(&self) -> NodeDisplayWrapper<'a, T>
Returns a copy 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<T: NodeDisplay> Display for NodeDisplayWrapper<'_, T>
impl<T: NodeDisplay> Display for NodeDisplayWrapper<'_, T>
source§impl Display for NodeDisplayWrapper<'static, str>
impl Display for NodeDisplayWrapper<'static, str>
impl<'a, T: Copy + ?Sized> Copy for NodeDisplayWrapper<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for NodeDisplayWrapper<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for NodeDisplayWrapper<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for NodeDisplayWrapper<'a, T>
impl<'a, T> Sync for NodeDisplayWrapper<'a, T>
impl<'a, T> Unpin for NodeDisplayWrapper<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for NodeDisplayWrapper<'a, T>where
T: RefUnwindSafe + ?Sized,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)