pub struct AnnotationSearch { /* private fields */ }Expand description
Dart’s AnnotationResult<S> while a search walks the tree: the type it looks for and what
it has found, erased so Layer::find_annotations can sit in a vtable. AnyLayer::find
and AnyLayer::find_all_annotations turn it back into an AnnotationResult<S>. See
PORTING.md.
Implementations§
Source§impl AnnotationSearch
impl AnnotationSearch
Sourcepub fn accepts(&self, annotation: &dyn Any) -> bool
pub fn accepts(&self, annotation: &dyn Any) -> bool
Dart’s T == S: whether annotation is exactly the type this search is for.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AnnotationSearch
impl !Send for AnnotationSearch
impl !Sync for AnnotationSearch
impl !UnwindSafe for AnnotationSearch
impl Freeze for AnnotationSearch
impl Unpin for AnnotationSearch
impl UnsafeUnpin for AnnotationSearch
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