pub struct Ruby;Implementations§
Source§impl Ruby
impl Ruby
pub fn init() -> Result<(), Error>
Sourcepub fn load_app(path: impl AsRef<Path> + Copy) -> Result<(), Error>
pub fn load_app(path: impl AsRef<Path> + Copy) -> Result<(), Error>
Preload the Rack app into memory. Run this before trying to run anything else.
Sourcepub fn eval(code: &str) -> Result<Value, Error>
pub fn eval(code: &str) -> Result<Value, Error>
Run some Ruby code. If an exception is thrown, return the error.
pub fn gc_disable()
pub fn gc_enable()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ruby
impl RefUnwindSafe for Ruby
impl Send for Ruby
impl Sync for Ruby
impl Unpin for Ruby
impl UnwindSafe for Ruby
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