pub struct Platform { /* private fields */ }Expand description
Platform abstraction layer
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn fs(&self) -> &FileSystem
pub fn fs(&self) -> &FileSystem
Get file system abstraction
Sourcepub fn time(&self) -> &TimeProvider
pub fn time(&self) -> &TimeProvider
Get time provider
Sourcepub fn threading(&self) -> &ThreadingProvider
pub fn threading(&self) -> &ThreadingProvider
Get threading provider
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
impl UnwindSafe for Platform
Blanket Implementations§
impl<T> Allocation for T
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