Struct sage::side_effects::ffi::FFIBinding
source · pub struct FFIBinding {
pub name: String,
pub input_cells: usize,
pub output_cells: usize,
}
Expand description
This is an FFI binding, which is used to call a foreign function in the virtual machine code.
The name is the symbol for the foreign function. The input cells is the number of cells that the foreign function will read from the FFI channel. The output cells is the number of cells that the foreign function will write to the FFI channel.
Fields§
§name: String
§input_cells: usize
§output_cells: usize
Implementations§
Trait Implementations§
source§impl Clone for FFIBinding
impl Clone for FFIBinding
source§fn clone(&self) -> FFIBinding
fn clone(&self) -> FFIBinding
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 FFIBinding
impl Debug for FFIBinding
source§impl Display for FFIBinding
impl Display for FFIBinding
source§impl Hash for FFIBinding
impl Hash for FFIBinding
source§impl Ord for FFIBinding
impl Ord for FFIBinding
source§fn cmp(&self, other: &FFIBinding) -> Ordering
fn cmp(&self, other: &FFIBinding) -> 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 FFIBinding
impl PartialEq for FFIBinding
source§fn eq(&self, other: &FFIBinding) -> bool
fn eq(&self, other: &FFIBinding) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FFIBinding
impl PartialOrd for FFIBinding
source§fn partial_cmp(&self, other: &FFIBinding) -> Option<Ordering>
fn partial_cmp(&self, other: &FFIBinding) -> 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 FFIBinding
impl StructuralEq for FFIBinding
impl StructuralPartialEq for FFIBinding
Auto Trait Implementations§
impl RefUnwindSafe for FFIBinding
impl Send for FFIBinding
impl Sync for FFIBinding
impl Unpin for FFIBinding
impl UnwindSafe for FFIBinding
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