pub trait Posablewhere
Self: Sized,{
// Provided methods
fn at<F>(self, pos: Position<F>) -> Pos<Self, F> { ... }
fn at_pos<F>(self, file: F, line: u32, column: u32) -> Pos<Self, F> { ... }
}Expand description
This trait allows you to easily create a Pos<T, F> object from a T object implementing the
Posable traits thanks to its methods Posable::at and Posable::at_pos.
You don’t need T to implement Posable in order to create a Pos<T>, this trait is useful
only if ypu prefer to use t.at(pos) in place of Pos::new(t, pos).
Provided Methods§
Object Safety§
This trait is not object safe.