Enum rubble_templates_core::units::Position [−][src]
pub enum Position { Unknown, RelativeToInvocation(usize), RelativeToCodeStart(usize), Absolute(usize), }
Expand description
Represents a position of node/symbol in template.
Variants
Used when there is no way to calculate the exact or approximate position.
RelativeToInvocation(usize)
Used to indicate a position relative to current function invocation.
RelativeToCodeStart(usize)
Used to indicate a position relative to the start of currently evaluated block of code.
Absolute(usize)
Used to indicate an absolute position in current template.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Position
impl UnwindSafe for Position
Blanket Implementations
Mutably borrows from an owned value. Read more