pub trait AnalysisPass: Downcast + Object {
// Required method
fn apply(&mut self, op: &Operation) -> Result<(), Report>;
}Required Methods§
Implementations§
Source§impl dyn AnalysisPass
impl dyn AnalysisPass
pub fn query_ref<U: Any + ?Sized>(&self) -> Option<&U>
pub fn query_mut<U: Any + ?Sized>(&mut self) -> Option<&mut U>
pub fn query<U: Any + ?Sized>(self: Box<Self>) -> Result<Box<U>, Box<Self>>
pub fn query_arc<U: Any + ?Sized>(self_: Arc<Self>) -> Result<Arc<U>, Arc<Self>>
pub fn query_rc<U: Any + ?Sized>(self_: Rc<Self>) -> Result<Rc<U>, Rc<Self>>
pub fn obj_partial_eq(&self, other: &Self) -> bool
pub fn obj_partial_cmp(&self, other: &Self) -> Option<Ordering>
Source§impl dyn AnalysisPass
impl dyn AnalysisPass
Sourcepub fn is<__T: AnalysisPass>(&self) -> bool
pub fn is<__T: AnalysisPass>(&self) -> bool
Returns true if the trait object wraps an object of type __T.
Sourcepub fn downcast<__T: AnalysisPass>(
self: Box<Self>,
) -> Result<Box<__T>, Box<Self>>
pub fn downcast<__T: AnalysisPass>( self: Box<Self>, ) -> Result<Box<__T>, Box<Self>>
Returns a boxed object from a boxed trait object if the underlying object is of type
__T. Returns the original boxed trait if it isn’t.
Sourcepub fn downcast_rc<__T: AnalysisPass>(
self: Rc<Self>,
) -> Result<Rc<__T>, Rc<Self>>
pub fn downcast_rc<__T: AnalysisPass>( self: Rc<Self>, ) -> Result<Rc<__T>, Rc<Self>>
Returns an Rc-ed object from an Rc-ed trait object if the underlying object is of
type __T. Returns the original Rc-ed trait if it isn’t.
Sourcepub fn downcast_ref<__T: AnalysisPass>(&self) -> Option<&__T>
pub fn downcast_ref<__T: AnalysisPass>(&self) -> Option<&__T>
Returns a reference to the object within the trait object if it is of type __T, or
None if it isn’t.
Sourcepub fn downcast_mut<__T: AnalysisPass>(&mut self) -> Option<&mut __T>
pub fn downcast_mut<__T: AnalysisPass>(&mut self) -> Option<&mut __T>
Returns a mutable reference to the object within the trait object if it is of type
__T, or None if it isn’t.
Trait Implementations§
Source§impl Clone for Box<dyn AnalysisPass>
impl Clone for Box<dyn AnalysisPass>
Source§impl Debug for dyn AnalysisPass
impl Debug for dyn AnalysisPass
Source§impl Hash for dyn AnalysisPass
impl Hash for dyn AnalysisPass
Source§impl Ord for dyn AnalysisPass
impl Ord for dyn AnalysisPass
Source§impl PartialEq for dyn AnalysisPass
impl PartialEq for dyn AnalysisPass
Source§impl PartialOrd for dyn AnalysisPass
impl PartialOrd for dyn AnalysisPass
Source§impl ToOwned for dyn AnalysisPass
impl ToOwned for dyn AnalysisPass
Source§type Owned = Box<dyn AnalysisPass>
type Owned = Box<dyn AnalysisPass>
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Box<dyn AnalysisPass>
fn to_owned(&self) -> Box<dyn AnalysisPass>
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more