trait WithLocationValue: Sized {
// Required method
fn with_location(self, location: Location) -> WithLocation<Self> ⓘ;
}Available on crate feature
alloc and (crate features formatting or parsing) only.Expand description
Helper trait to attach a Location to a value.
Required Methods§
Sourcefn with_location(self, location: Location) -> WithLocation<Self> ⓘ
fn with_location(self, location: Location) -> WithLocation<Self> ⓘ
Attach a Location to a value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".