[][src]Struct dprint_core::formatting::Condition

pub struct Condition { /* fields omitted */ }

Conditionally print items based on a condition.

These conditions are extremely flexible and can even be resolved based on information found later on in the file.

Implementations

impl Condition[src]

pub fn new(name: &'static str, properties: ConditionProperties) -> Condition[src]

pub fn new_true() -> Condition[src]

pub fn new_false() -> Condition[src]

pub fn new_with_dependent_infos(
    name: &'static str,
    properties: ConditionProperties,
    dependent_infos: Vec<Info>
) -> Condition
[src]

pub fn get_unique_id(&self) -> usize[src]

pub fn get_name(&self) -> &'static str[src]

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

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

pub fn get_reference(&mut self) -> ConditionReference[src]

Trait Implementations

impl Clone for Condition[src]

impl Into<PrintItems> for Condition[src]

Auto Trait Implementations

impl !RefUnwindSafe for Condition

impl !Send for Condition

impl !Sync for Condition

impl Unpin for Condition

impl !UnwindSafe for Condition

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.