Struct dprint_core::formatting::PrintItems
source · pub struct PrintItems { /* private fields */ }
Expand description
Print Items
Implementations§
source§impl PrintItems
impl PrintItems
pub fn new() -> Self
pub fn into_rc_path(self) -> Option<PrintItemPath>
pub fn push_item(&mut self, item: PrintItem)
source§impl PrintItems
impl PrintItems
pub fn extend(&mut self, items: PrintItems)
pub fn push_str(&mut self, item: &'static str)
pub fn push_string(&mut self, item: String)
pub fn push_condition(&mut self, condition: Condition)
pub fn push_info(&mut self, info: impl Into<Info>)
pub fn push_line_and_column(&mut self, line_and_col: LineAndColumn)
pub fn push_anchor(&mut self, anchor: impl Into<Anchor>)
pub fn push_reevaluation( &mut self, condition_reevaluation: ConditionReevaluation )
pub fn push_signal(&mut self, signal: Signal)
pub fn push_path(&mut self, path: PrintItemPath)
pub fn push_optional_path(&mut self, path: Option<PrintItemPath>)
pub fn is_empty(&self) -> bool
pub fn get_as_text(&self) -> String
pub fn iter(&self) -> PrintItemsIterator ⓘ
Trait Implementations§
source§impl Default for PrintItems
impl Default for PrintItems
source§fn default() -> PrintItems
fn default() -> PrintItems
Returns the “default value” for a type. Read more
source§impl From<&'static PrintNodeCell> for PrintItems
impl From<&'static PrintNodeCell> for PrintItems
source§fn from(value: PrintItemPath) -> Self
fn from(value: PrintItemPath) -> Self
Converts to this type from the input type.
source§impl From<&'static str> for PrintItems
impl From<&'static str> for PrintItems
source§impl From<Condition> for PrintItems
impl From<Condition> for PrintItems
source§impl<T> From<Option<T>> for PrintItemswhere
PrintItems: From<T>,
impl<T> From<Option<T>> for PrintItemswhere PrintItems: From<T>,
source§impl From<Signal> for PrintItems
impl From<Signal> for PrintItems
Auto Trait Implementations§
impl !RefUnwindSafe for PrintItems
impl !Send for PrintItems
impl !Sync for PrintItems
impl Unpin for PrintItems
impl !UnwindSafe for PrintItems
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