pub struct BlockDoc<'doc, D, A>where
D: DocAllocator<'doc, A>,{
pub affixes: Vec<Affixes<'doc, D, A>>,
pub body: DocBuilder<'doc, D, A>,
}Expand description
Formats a set of prefix and suffix documents around a body
The following document split into the prefixes [\x y ->, \z ->, {], suffixes [nil, nil, }] and body [result: x + y - z] will try to be formatted
\x y -> \z -> { result: x + y - z }\x y -> \z -> {
result: x + y - z
}\x y -> \z ->
{
result: x + y - z
}\x y ->
\z ->
{
result: x + y - z
}Fields§
§affixes: Vec<Affixes<'doc, D, A>>§body: DocBuilder<'doc, D, A>Implementations§
Auto Trait Implementations§
impl<'doc, D, A> Freeze for BlockDoc<'doc, D, A>
impl<'doc, D, A> RefUnwindSafe for BlockDoc<'doc, D, A>
impl<'doc, D, A> Send for BlockDoc<'doc, D, A>
impl<'doc, D, A> Sync for BlockDoc<'doc, D, A>
impl<'doc, D, A> Unpin for BlockDoc<'doc, D, A>
impl<'doc, D, A> UnsafeUnpin for BlockDoc<'doc, D, A>
impl<'doc, D, A> UnwindSafe for BlockDoc<'doc, D, A>
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