pub struct Condition { /* private fields */ }
Expand description
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§
source§impl Condition
impl Condition
pub fn new(name: &'static str, properties: ConditionProperties) -> Self
pub fn new_true() -> Self
pub fn new_false() -> Self
pub fn unique_id(&self) -> u32
pub fn name(&self) -> &'static str
pub fn true_path(&self) -> &Option<PrintItemPath>
pub fn false_path(&self) -> &Option<PrintItemPath>
pub fn create_reference(&mut self) -> ConditionReference
pub fn create_reevaluation(&mut self) -> ConditionReevaluation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Condition
impl !RefUnwindSafe for Condition
impl !Send for Condition
impl !Sync for Condition
impl Unpin for Condition
impl !UnwindSafe for Condition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)