pub struct ConditionResolverContext<'a, 'b> {
    pub writer_info: WriterInfo,
    /* private fields */
}
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 None when not yet resolved. A condition reference can be retrieved by calling the create_reference() on a condition.

Gets a resolved line and column.

Gets the line number or returns None when not yet resolved.

Gets the column number or returns None when not yet resolved.

Gets if the info is at the start of the line or returns None when not yet resolved.

Gets if the indent level at this info or returns None when not yet resolved.

Gets the column number at the start of the line this info appears or returns None when not yet resolved.

Gets the indent level at the start of the line this info appears or returns None when not yet resolved.

Clears the line and column from being stored.

Clears the info from being stored.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.