pub struct EnginePatches { /* private fields */ }Expand description
Bit-set recording which engine patches are active on a core.
Implementations§
Source§impl EnginePatches
impl EnginePatches
Sourcepub const fn with(self, patch: EnginePatch) -> Self
pub const fn with(self, patch: EnginePatch) -> Self
Returns a new EnginePatches with the given patch added.
Sourcepub const fn from_extension_policy(policy: ExtensionPolicy) -> Self
pub const fn from_extension_policy(policy: ExtensionPolicy) -> Self
Derives an EnginePatches value from an ExtensionPolicy.
Sourcepub const fn contains(&self, patch: EnginePatch) -> bool
pub const fn contains(&self, patch: EnginePatch) -> bool
Returns true if the given patch is present in this set.
Trait Implementations§
Source§impl Clone for EnginePatches
impl Clone for EnginePatches
Source§fn clone(&self) -> EnginePatches
fn clone(&self) -> EnginePatches
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 EnginePatches
Source§impl Debug for EnginePatches
impl Debug for EnginePatches
Source§impl Default for EnginePatches
impl Default for EnginePatches
Source§fn default() -> EnginePatches
fn default() -> EnginePatches
Returns the “default value” for a type. Read more
impl Eq for EnginePatches
Source§impl PartialEq for EnginePatches
impl PartialEq for EnginePatches
impl StructuralPartialEq for EnginePatches
Auto Trait Implementations§
impl Freeze for EnginePatches
impl RefUnwindSafe for EnginePatches
impl Send for EnginePatches
impl Sync for EnginePatches
impl Unpin for EnginePatches
impl UnsafeUnpin for EnginePatches
impl UnwindSafe for EnginePatches
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