pub trait WithLocation: Sized {
// Provided methods
fn at(self, file_id: usize, span: &impl HasCodespan) -> Loc<Self>
where Self: Sized { ... }
fn at_loc<T: Sized>(self, loc: &Loc<T>) -> Loc<Self> { ... }
fn between(
self,
file_id: usize,
start: &impl HasCodespan,
end: &impl HasCodespan,
) -> Loc<Self> { ... }
fn between_locs<T, Y>(self, start: &Loc<T>, end: &Loc<Y>) -> Loc<Self> { ... }
fn nowhere(self) -> Loc<Self>
where Self: Sized { ... }
}
Provided Methods§
fn at(self, file_id: usize, span: &impl HasCodespan) -> Loc<Self>where
Self: Sized,
fn between( self, file_id: usize, start: &impl HasCodespan, end: &impl HasCodespan, ) -> Loc<Self>
fn between_locs<T, Y>(self, start: &Loc<T>, end: &Loc<Y>) -> Loc<Self>
fn nowhere(self) -> Loc<Self>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.