[−][src]Enum shoebill::Doc
The inner document type. Newline gives you the option of specifying
an alternate representation (as an OptionGroup
node), and all of the grouped elements
will fit onto the current line without exceeding the line width specified
for rendering.
The default behavior of Newline(None)
in flatmode is to render a space.
Hardline
will always render as a linebreak, no matter what.
Variants
Text(StringPtr<'p>)
Fields of Concat
Trait Implementations
impl<'p> Clone for Doc<'p>
[src]
impl<'p> Copy for Doc<'p>
[src]
impl<'p> Debug for Doc<'p>
[src]
impl<'p, P: HasPrinter<'p>> Doclike<'p, P> for Doc<'p>
[src]
fn alloc(self, pr: &mut P) -> DocPtr<'p>
[src]
fn concat(self, other: impl Doclike<'p, P>, pr: &mut P) -> DocPtr<'p>
[src]
fn nest(self, amt: u32, pr: &mut P) -> DocPtr<'p>
[src]
fn nest_line(
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
[src]
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
fn nest_doc(
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
[src]
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
fn nest_doc_zero(
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
[src]
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
fn group(self, pr: &mut P) -> DocPtr<'p>
[src]
impl<'p> Eq for Doc<'p>
[src]
impl<'p> Hash for Doc<'p>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'p> PartialEq<Doc<'p>> for Doc<'p>
[src]
impl<'p> StructuralEq for Doc<'p>
[src]
impl<'p> StructuralPartialEq for Doc<'p>
[src]
Auto Trait Implementations
impl<'p> RefUnwindSafe for Doc<'p>
impl<'p> Send for Doc<'p>
impl<'p> Sync for Doc<'p>
impl<'p> Unpin for Doc<'p>
impl<'p> UnwindSafe for Doc<'p>
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'p, A, P> Doclike<'p, P> for A where
P: HasPrinter<'p>,
Cow<'p, str>: From<A>,
[src]
P: HasPrinter<'p>,
Cow<'p, str>: From<A>,
fn alloc(Self, &mut P) -> DocPtr<'p>
[src]
fn concat(self, other: impl Doclike<'p, P>, pr: &mut P) -> DocPtr<'p>
[src]
fn nest(self, amt: u32, pr: &mut P) -> DocPtr<'p>
[src]
fn nest_line(
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
[src]
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
fn nest_doc(
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
[src]
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
fn nest_doc_zero(
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
[src]
self,
other: impl Doclike<'p, P>,
amt: u32,
pr: &mut P
) -> DocPtr<'p>
fn group(self, pr: &mut P) -> DocPtr<'p>
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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.
fn to_owned(&self) -> T
[src]
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.
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>,