pub struct AnyFn<'a> { /* private fields */ }
Expand description
A dynamically-typed function.
Implementations§
Source§impl<'a> AnyFn<'a>
impl<'a> AnyFn<'a>
Sourcepub fn parameter_types(&self) -> &[TypeId]
pub fn parameter_types(&self) -> &[TypeId]
Returns parameter types.
Sourcepub const fn return_type(&self) -> TypeId
pub const fn return_type(&self) -> TypeId
Returns a return type.
Auto Trait Implementations§
impl<'a> Freeze for AnyFn<'a>
impl<'a> !RefUnwindSafe for AnyFn<'a>
impl<'a> !Send for AnyFn<'a>
impl<'a> !Sync for AnyFn<'a>
impl<'a> Unpin for AnyFn<'a>
impl<'a> !UnwindSafe for AnyFn<'a>
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