pub struct FunctionsByType<'m> { /* private fields */ }
Expand description
Allows you to iterate over all the functions in the analyzed Module
(s) that
have a specified type.
To construct a FunctionsByType
, use ModuleAnalysis
or CrossModuleAnalysis
.
Implementations§
Source§impl<'m> FunctionsByType<'m>
impl<'m> FunctionsByType<'m>
Sourcepub fn functions_with_type<'s>(
&'s self,
ty: &TypeRef,
) -> impl Iterator<Item = &'m str> + 's
pub fn functions_with_type<'s>( &'s self, ty: &TypeRef, ) -> impl Iterator<Item = &'m str> + 's
Iterate over all of the functions in the analyzed Module
(s) that have
the specified type
Auto Trait Implementations§
impl<'m> Freeze for FunctionsByType<'m>
impl<'m> RefUnwindSafe for FunctionsByType<'m>
impl<'m> Send for FunctionsByType<'m>
impl<'m> Sync for FunctionsByType<'m>
impl<'m> Unpin for FunctionsByType<'m>
impl<'m> UnwindSafe for FunctionsByType<'m>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more