Struct interoptopus::lang::c::FnPointerType
source · pub struct FnPointerType { /* private fields */ }
Expand description
Represents extern "C" fn()
types in Rust and (*f)().
in C.
Implementations§
source§impl FnPointerType
impl FnPointerType
pub fn new(signature: FunctionSignature) -> Self
pub fn new_named(signature: FunctionSignature, name: String) -> Self
pub fn signature(&self) -> &FunctionSignature
pub fn name(&self) -> Option<&str>
pub fn internal_name(&self) -> String
pub fn rust_name(&self) -> String
Trait Implementations§
source§impl Clone for FnPointerType
impl Clone for FnPointerType
source§fn clone(&self) -> FnPointerType
fn clone(&self) -> FnPointerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FnPointerType
impl Debug for FnPointerType
source§impl Hash for FnPointerType
impl Hash for FnPointerType
source§impl Ord for FnPointerType
impl Ord for FnPointerType
source§fn cmp(&self, other: &FnPointerType) -> Ordering
fn cmp(&self, other: &FnPointerType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FnPointerType
impl PartialEq for FnPointerType
source§fn eq(&self, other: &FnPointerType) -> bool
fn eq(&self, other: &FnPointerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FnPointerType
impl PartialOrd for FnPointerType
source§fn partial_cmp(&self, other: &FnPointerType) -> Option<Ordering>
fn partial_cmp(&self, other: &FnPointerType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for FnPointerType
impl StructuralPartialEq for FnPointerType
Auto Trait Implementations§
impl RefUnwindSafe for FnPointerType
impl Send for FnPointerType
impl Sync for FnPointerType
impl Unpin for FnPointerType
impl UnwindSafe for FnPointerType
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