Struct piston_meta::meta_rules::Tag [] [src]

pub struct Tag {
    pub text: Arc<String>,
    pub not: bool,
    pub inverted: bool,
    pub property: Option<Arc<String>>,
    pub debug_id: DebugId,
}

Stores information about tag.

Fields

The text to match against.

Whether to fail when matching against text.

Whether to set property to true or false (inverted).

Which property to set if tag matches.

A debug id to track down the rule generating an error.

Methods

impl Tag
[src]

Parses tag. If the tag is linked to a property, the property will be set. If the meta reader fails setting the property the error is handled. If the token is not linked to any property, the same state will be returned.

Trait Implementations

impl Clone for Tag
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Tag
[src]

Formats the value using the given formatter.

impl PartialEq for Tag
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.