pub struct ProjectionRewriteSet { /* private fields */ }Expand description
A set of projection rewrite rules for a kernel.
Implementations§
Source§impl ProjectionRewriteSet
impl ProjectionRewriteSet
Sourcepub fn add(&mut self, rule: ProjectionRewrite)
pub fn add(&mut self, rule: ProjectionRewrite)
Add a rule.
Sourcepub fn find_by_projector(&self, projector: &str) -> Option<&ProjectionRewrite>
pub fn find_by_projector(&self, projector: &str) -> Option<&ProjectionRewrite>
Look up a rule by projector name.
Sourcepub fn rules_for_ctor(&self, ctor: &str) -> Vec<&ProjectionRewrite>
pub fn rules_for_ctor(&self, ctor: &str) -> Vec<&ProjectionRewrite>
Look up all rules for a constructor.
Sourcepub fn projector_names(&self) -> Vec<&str>
pub fn projector_names(&self) -> Vec<&str>
Return all projector names.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProjectionRewriteSet
impl RefUnwindSafe for ProjectionRewriteSet
impl Send for ProjectionRewriteSet
impl Sync for ProjectionRewriteSet
impl Unpin for ProjectionRewriteSet
impl UnsafeUnpin for ProjectionRewriteSet
impl UnwindSafe for ProjectionRewriteSet
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