pub struct NativeClassBuilder<'a, T>where
T: Any,{ /* private fields */ }
Implementations§
Source§impl<'a, T> NativeClassBuilder<'a, T>where
T: Any,
impl<'a, T> NativeClassBuilder<'a, T>where
T: Any,
pub fn doc<D>(&mut self, doc: D) -> &mut NativeClassBuilder<'a, T>
Sourcepub fn ifunc<N, A, D, B>(
&mut self,
name: N,
argspec: A,
doc: D,
body: B,
) -> &mut NativeClassBuilder<'a, T>
pub fn ifunc<N, A, D, B>( &mut self, name: N, argspec: A, doc: D, body: B, ) -> &mut NativeClassBuilder<'a, T>
Declare an instance method
Sourcepub fn sfunc<N, A, D, B>(
&mut self,
name: N,
argspec: A,
doc: D,
body: B,
) -> &mut NativeClassBuilder<'a, T>
pub fn sfunc<N, A, D, B>( &mut self, name: N, argspec: A, doc: D, body: B, ) -> &mut NativeClassBuilder<'a, T>
Declare a static method
Sourcepub fn str<F>(&mut self, f: F) -> &mut NativeClassBuilder<'a, T>
pub fn str<F>(&mut self, f: F) -> &mut NativeClassBuilder<'a, T>
Customize the default behavior when ‘str’ function is called
Auto Trait Implementations§
impl<'a, T> Freeze for NativeClassBuilder<'a, T>
impl<'a, T> !RefUnwindSafe for NativeClassBuilder<'a, T>
impl<'a, T> !Send for NativeClassBuilder<'a, T>
impl<'a, T> !Sync for NativeClassBuilder<'a, T>
impl<'a, T> Unpin for NativeClassBuilder<'a, T>
impl<'a, T> !UnwindSafe for NativeClassBuilder<'a, T>
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
Source§impl<T> SetParameter for T
impl<T> SetParameter for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.