pub struct HostContext {
pub platform_family: PlatformFamily,
pub environment: HostEnvironment,
/* private fields */
}Fields§
§platform_family: PlatformFamily§environment: HostEnvironmentImplementations§
Source§impl HostContext
impl HostContext
pub fn new( platform_family: PlatformFamily, environment: HostEnvironment, capabilities: u32, ) -> Self
pub fn supports(self, capability: HostCapability) -> bool
Trait Implementations§
Source§impl Clone for HostContext
impl Clone for HostContext
Source§fn clone(&self) -> HostContext
fn clone(&self) -> HostContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostContext
Source§impl Debug for HostContext
impl Debug for HostContext
impl Eq for HostContext
Source§impl PartialEq for HostContext
impl PartialEq for HostContext
impl StructuralPartialEq for HostContext
Auto Trait Implementations§
impl Freeze for HostContext
impl RefUnwindSafe for HostContext
impl Send for HostContext
impl Sync for HostContext
impl Unpin for HostContext
impl UnsafeUnpin for HostContext
impl UnwindSafe for HostContext
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