[−][src]Struct dprint_core::formatting::Condition
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]
name: &'static str,
properties: ConditionProperties,
dependent_infos: Vec<Info>
) -> Condition
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]
fn into(self) -> PrintItems
[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]
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<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>,