pub struct DebugHelper {
pub f: FnFmtRaw,
pub ptr: *const u8,
}Expand description
A helper type for the FnFmtRaw.
This type implements Deubg, therefore it’s useful when you
want to print something out using the FnFmtRaw.
§Examples
use my_ecs::ds::{TypeHelper, DebugHelper};
let value = 123_i32;
let fn_fmt = TypeHelper::<i32>::fn_fmt();
let helper = DebugHelper {
f: fn_fmt,
ptr: &value as *const i32 as *const u8
};
println!("{helper:?}");Fields§
§f: FnFmtRaw§ptr: *const u8Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugHelper
impl RefUnwindSafe for DebugHelper
impl !Send for DebugHelper
impl !Sync for DebugHelper
impl Unpin for DebugHelper
impl UnwindSafe for DebugHelper
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more