Struct dprint_core::formatting::ConditionResolverContext [−][src]
pub struct ConditionResolverContext<'a, 'b> { pub writer_info: WriterInfo, // some fields omitted }
Expand description
Context used when resolving a condition.
Fields
writer_info: WriterInfo
Gets the writer info at the condition’s location.
Implementations
pub fn get_resolved_condition(
&mut self,
condition_reference: &ConditionReference
) -> Option<bool>
[src]
pub fn get_resolved_condition(
&mut self,
condition_reference: &ConditionReference
) -> Option<bool>
[src]Gets if a condition was true, false, or returns undefined when not yet resolved.
A condition reference can be retrieved by calling the get_reference()
on a condition.
Gets the writer info at a specified info or returns undefined when not yet resolved.
Clears the info result from being stored.
Gets if the provided info has moved positions since the last check. Returns None when the info can’t be resolved. Returns Some(false) the first time this is called.
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for ConditionResolverContext<'a, 'b>
impl<'a, 'b> !Send for ConditionResolverContext<'a, 'b>
impl<'a, 'b> !Sync for ConditionResolverContext<'a, 'b>
impl<'a, 'b> Unpin for ConditionResolverContext<'a, 'b> where
'b: 'a,
impl<'a, 'b> !UnwindSafe for ConditionResolverContext<'a, 'b>