pub struct FormattedValue {
pub text: String,
pub spans: BTreeMap<Vec<PathSegment>, (usize, usize)>,
}Expand description
Result of formatting a value with span tracking
Fields§
§text: StringThe formatted text (plain text, suitable for miette)
spans: BTreeMap<Vec<PathSegment>, (usize, usize)>Map from paths to their byte spans in text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormattedValue
impl RefUnwindSafe for FormattedValue
impl Send for FormattedValue
impl Sync for FormattedValue
impl Unpin for FormattedValue
impl UnwindSafe for FormattedValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more