pub struct TargetMask(/* private fields */);Expand description
The set of runtimes a rule applies to.
Implementations§
Source§impl TargetMask
impl TargetMask
pub const ROBLOX: Self
pub const LUTE: Self
pub const LUNEBLOX: Self
pub const BARE: Self
pub const ANY: Self
Sourcepub fn from_targets(targets: &[Target]) -> Self
pub fn from_targets(targets: &[Target]) -> Self
Build a mask from a list of targets.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Whether the masks share a target.
Trait Implementations§
Source§impl Clone for TargetMask
impl Clone for TargetMask
impl Copy for TargetMask
Source§impl Debug for TargetMask
impl Debug for TargetMask
impl Eq for TargetMask
Source§impl PartialEq for TargetMask
impl PartialEq for TargetMask
impl StructuralPartialEq for TargetMask
Auto Trait Implementations§
impl Forget for TargetMask
impl Freeze for TargetMask
impl Move for TargetMask
impl RefUnwindSafe for TargetMask
impl Send for TargetMask
impl Sync for TargetMask
impl Unpin for TargetMask
impl UnsafeUnpin for TargetMask
impl UnwindSafe for TargetMask
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