pub struct Builder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
pub fn for_spec(interp: &'a mut Artichoke, spec: &'a Spec) -> Self
pub fn value_is_rust_object(self) -> Self
pub fn with_super_class<T, U>(self, classname: U) -> Result<Self, Error>
pub fn add_method<T>( self, name: T, method: Method, args: mrb_aspec, ) -> Result<Self, ConstantNameError>
pub fn add_self_method<T>( self, name: T, method: Method, args: mrb_aspec, ) -> Result<Self, ConstantNameError>
pub fn define(self) -> Result<(), NotDefinedError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> RefUnwindSafe for Builder<'a>
impl<'a> !Send for Builder<'a>
impl<'a> !Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> !UnwindSafe for Builder<'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