[−][src]Struct nu_source::DebugDoc
Fields
inner: Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
Implementations
impl DebugDoc
[src]
pub fn new(
inner: Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
) -> Self
[src]
inner: Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
) -> Self
Constructs a new DebugDoc
.
Trait Implementations
impl Clone for DebugDoc
[src]
impl Debug for DebugDoc
[src]
impl Deref for DebugDoc
[src]
type Target = Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
The resulting type after dereferencing.
pub fn deref(&self) -> &Self::Target
[src]
impl Eq for DebugDoc
[src]
impl From<DebugDoc> for Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
[src]
pub fn from(
input: DebugDoc
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
[src]
input: DebugDoc
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
impl Hash for DebugDoc
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for DebugDoc
[src]
pub fn cmp(&self, other: &DebugDoc) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<DebugDoc> for DebugDoc
[src]
impl PartialOrd<DebugDoc> for DebugDoc
[src]
pub fn partial_cmp(&self, other: &DebugDoc) -> Option<Ordering>
[src]
pub fn lt(&self, other: &DebugDoc) -> bool
[src]
pub fn le(&self, other: &DebugDoc) -> bool
[src]
pub fn gt(&self, other: &DebugDoc) -> bool
[src]
pub fn ge(&self, other: &DebugDoc) -> bool
[src]
impl PrettyDebug for DebugDoc
[src]
pub fn pretty(&self) -> DebugDocBuilder
[src]
pub fn to_doc(&self) -> DebugDoc
[src]
pub fn pretty_doc(
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
[src]
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
pub fn pretty_builder(
&self
) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>
[src]
&self
) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>
pub fn display(&self) -> String
[src]
pub fn plain_string(&self, width: usize) -> String
[src]
pub fn colored_string(&self, width: usize) -> String
[src]
impl StructuralEq for DebugDoc
[src]
impl StructuralPartialEq for DebugDoc
[src]
Auto Trait Implementations
impl RefUnwindSafe for DebugDoc
[src]
impl Send for DebugDoc
[src]
impl Sync for DebugDoc
[src]
impl Unpin for DebugDoc
[src]
impl UnwindSafe for DebugDoc
[src]
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> 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, 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>,