pub struct SourceRule { /* private fields */ }Expand description
SourceRule
Compiler-authored durable rule template carried by one reusable type. Fragment lowering instantiates it for each persisted field use; it is not an application callback or a database runtime evaluator.
Implementations§
Source§impl SourceRule
impl SourceRule
Sourcepub const fn new(
name: &'static str,
operation: SourceRuleAuthoringOperation,
) -> Self
pub const fn new( name: &'static str, operation: SourceRuleAuthoringOperation, ) -> Self
Construct one explicit reusable rule template.
Sourcepub const fn operation(&self) -> &SourceRuleAuthoringOperation
pub const fn operation(&self) -> &SourceRuleAuthoringOperation
Borrow the frozen rule operation and its named operands.
Trait Implementations§
Source§impl Clone for SourceRule
impl Clone for SourceRule
Source§fn clone(&self) -> SourceRule
fn clone(&self) -> SourceRule
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 moreSource§impl Debug for SourceRule
impl Debug for SourceRule
Auto Trait Implementations§
impl Freeze for SourceRule
impl RefUnwindSafe for SourceRule
impl Send for SourceRule
impl Sync for SourceRule
impl Unpin for SourceRule
impl UnsafeUnpin for SourceRule
impl UnwindSafe for SourceRule
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