[−][src]Enum dprint_core::PrintItem
The different items the printer could encounter.
Variants
String(String)
RawString(RawString)
Condition(Condition)
Info(Info)
Signal that a new line should occur based on the printer settings.
Signal that the current location could be a newline when exceeding the line width.
Signal that the current location should be a space, but could be a newline if exceeding the line width.
Expect the next character to be a newline. If it's not, force a newline.
Signal the start of a section that should be indented.
Signal the end of a section that should be indented.
Signal the start of a group of print items that have a lower precedence for being broken up with a newline for exceeding the line width.
Signal the end of a newline group.
Signal that a single indent should occur based on the printer settings.
Signal to the printer that it should stop using indentation.
Signal to the printer that it should start using indentation again.
Trait Implementations
impl<'_> Into<PrintItem> for &'_ str
[src]
impl Into<PrintItem> for String
[src]
impl<'_> Into<PrintItem> for &'_ String
[src]
impl Into<PrintItem> for Info
[src]
impl Into<PrintItem> for Condition
[src]
impl Clone for PrintItem
[src]
Auto Trait Implementations
impl !Send for PrintItem
impl !Sync for PrintItem
impl Unpin for PrintItem
impl !UnwindSafe for PrintItem
impl !RefUnwindSafe for PrintItem
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,