Struct passerine::core::ffi::FFI [−][src]
A foreign functional interface, mapping names to functions, passed to the compiler at the bytecode generation step.
Implementations
impl FFI
[src]
pub fn new() -> FFI
[src]
Creates a new empty Foreign Functional Interface.
pub fn add(&mut self, name: &str, function: FFIFunction) -> Result<(), String>
[src]
Returns true if the function has already been added to the FFI
.
pub fn get(&mut self, name: &str) -> Result<FFIFunction, String>
[src]
Returns the FFIFunction
interned with the provided name.
pub fn combine(&mut self, other: FFI) -> Result<(), FFI>
[src]
Tries to merge one FFI into another. If there was a name collision, this function returns an Err(FFI) with the functions that collided.
Auto Trait Implementations
impl !RefUnwindSafe for FFI
impl !Send for FFI
impl !Sync for FFI
impl Unpin for FFI
impl !UnwindSafe for FFI
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,