pub struct BoxDoc<'a, A>(/* private fields */);
Methods from Deref<Target = Doc<'a, BoxDoc<'a, A>, A>>§
sourcepub fn render<'b, W>(&'b self, width: usize, out: &mut W) -> Result<()>
pub fn render<'b, W>(&'b self, width: usize, out: &mut W) -> Result<()>
Writes a rendered document to a std::io::Write
object.
sourcepub fn render_fmt<'b, W>(&'b self, width: usize, out: &mut W) -> Result
pub fn render_fmt<'b, W>(&'b self, width: usize, out: &mut W) -> Result
Writes a rendered document to a std::fmt::Write
object.
sourcepub fn render_raw<'b, W>(
&'b self,
width: usize,
out: &mut W
) -> Result<(), W::Error>
pub fn render_raw<'b, W>( &'b self, width: usize, out: &mut W ) -> Result<(), W::Error>
Writes a rendered document to a RenderAnnotated<A>
object.
Trait Implementations§
source§impl<'a, A: Ord> Ord for BoxDoc<'a, A>
impl<'a, A: Ord> Ord for BoxDoc<'a, A>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, A: PartialEq> PartialEq for BoxDoc<'a, A>
impl<'a, A: PartialEq> PartialEq for BoxDoc<'a, A>
source§impl<'a, A: PartialOrd> PartialOrd for BoxDoc<'a, A>
impl<'a, A: PartialOrd> PartialOrd for BoxDoc<'a, A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a, A: Eq> Eq for BoxDoc<'a, A>
impl<'a, A> StructuralPartialEq for BoxDoc<'a, A>
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for BoxDoc<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for BoxDoc<'a, A>where
A: Send,
impl<'a, A> Sync for BoxDoc<'a, A>where
A: Sync,
impl<'a, A> Unpin for BoxDoc<'a, A>
impl<'a, A> UnwindSafe for BoxDoc<'a, A>where
A: UnwindSafe,
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