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: PartialOrd> PartialOrd for BoxDoc<'a, A>
impl<'a, A: PartialOrd> PartialOrd for BoxDoc<'a, A>
impl<'a, A: Eq> Eq for BoxDoc<'a, A>
impl<'a, A> StructuralPartialEq for BoxDoc<'a, A>
Auto Trait Implementations§
impl<'a, A> Freeze for BoxDoc<'a, A>
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
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
)