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

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.