pub struct Rule<Id> { /* private fields */ }Expand description
One unique preflight-checked rule handle and its shared schedule declaration.
Implementations§
Source§impl<Id> Rule<Id>
impl<Id> Rule<Id>
Sourcepub const fn new(id: Id, schedule: RuleSchedule) -> Self
pub const fn new(id: Id, schedule: RuleSchedule) -> Self
Associate an existing backend rule with its checked declaration.
Sourcepub const fn schedule(&self) -> &RuleSchedule
pub const fn schedule(&self) -> &RuleSchedule
Original shared declaration, without lexical normalization.
Trait Implementations§
Auto Trait Implementations§
impl<Id> Forget for Rule<Id>
impl<Id> Freeze for Rule<Id>
impl<Id> Move for Rule<Id>
impl<Id> RefUnwindSafe for Rule<Id>
impl<Id> Send for Rule<Id>
impl<Id> Sync for Rule<Id>
impl<Id> Unpin for Rule<Id>
impl<Id> UnsafeUnpin for Rule<Id>where
Id: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroUsizeInner: UnsafeUnpin,
impl<Id> UnwindSafe for Rule<Id>
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