Struct dprint_core::formatting::PrintItems[][src]

pub struct PrintItems { /* fields omitted */ }
Expand description

Print Items

Implementations

impl PrintItems[src]

pub fn new() -> PrintItems[src]

pub fn into_rc_path(self) -> Option<PrintItemPath>[src]

pub fn push_item(&mut self, item: PrintItem)[src]

impl PrintItems[src]

pub fn extend(&mut self, items: PrintItems)[src]

pub fn push_str(&mut self, item: &str)[src]

pub fn push_condition(&mut self, condition: Condition)[src]

pub fn push_info(&mut self, info: Info)[src]

pub fn push_signal(&mut self, signal: Signal)[src]

pub fn push_path(&mut self, path: PrintItemPath)[src]

pub fn push_optional_path(&mut self, path: Option<PrintItemPath>)[src]

pub fn is_empty(&self) -> bool[src]

pub fn get_as_text(&self) -> String[src]

pub fn iter(&self) -> PrintItemsIterator

Notable traits for PrintItemsIterator

impl Iterator for PrintItemsIterator type Item = PrintItem;
[src]

Trait Implementations

impl Into<PrintItems> for Condition[src]

fn into(self) -> PrintItems[src]

Performs the conversion.

impl Into<PrintItems> for Signal[src]

fn into(self) -> PrintItems[src]

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.