Struct miri::borrow_tracker::tree_borrows::diagnostics::DisplayFmt
source · struct DisplayFmt {
wrapper: DisplayFmtWrapper,
perm: DisplayFmtPermission,
padding: DisplayFmtPadding,
accessed: DisplayFmtAccess,
}
Expand description
All parameters to determine how the tree is formated.
Fields§
§wrapper: DisplayFmtWrapper
§perm: DisplayFmtPermission
§padding: DisplayFmtPadding
§accessed: DisplayFmtAccess
Implementations§
source§impl DisplayFmt
impl DisplayFmt
sourcefn print_perm(&self, perm: Option<LocationState>) -> String
fn print_perm(&self, perm: Option<LocationState>) -> String
Print the permission with the format
Res
/ Re*
/ Act
/ Frz
/ Dis
for accessed locations
and ?Res
/?Re*
/?Act
/?Frz
/?Dis
for unaccessed locations.
sourcefn print_tag(&self, tag: BorTag, name: &Option<String>) -> String
fn print_tag(&self, tag: BorTag, name: &Option<String>) -> String
Print the tag with the format <XYZ>
if the tag is unnamed,
and <XYZ=name>
if the tag is named.
sourcefn print_protector(&self, protector: Option<&ProtectorKind>) -> &'static str
fn print_protector(&self, protector: Option<&ProtectorKind>) -> &'static str
Print extra text if the tag has a protector.
Auto Trait Implementations§
impl RefUnwindSafe for DisplayFmt
impl Send for DisplayFmt
impl Sync for DisplayFmt
impl Unpin for DisplayFmt
impl UnwindSafe for DisplayFmt
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 248 bytes