pub struct NativeOperation<'a> {
pub kind: NativeTypeKind,
pub method: &'a str,
}Fields§
§kind: NativeTypeKind§method: &'a strImplementations§
Source§impl<'a> NativeOperation<'a>
impl<'a> NativeOperation<'a>
pub fn new(kind: NativeTypeKind, method: &'a str) -> Self
pub fn mutates_receiver(self) -> bool
pub fn grows_slice(self) -> bool
pub fn returns_fresh_slice(self) -> bool
pub fn indexes_receiver(self) -> bool
pub fn read_only_without_callbacks(self) -> bool
Source§impl NativeOperation<'_>
impl NativeOperation<'_>
pub fn inline_rule(self, arity: usize) -> Option<&'static NativeInlineRule>
pub fn reads_array_in_place(self) -> bool
pub fn reads_elements_only(self, arity: usize) -> bool
pub fn lowers_to_plain_call(self, arity: usize) -> bool
Trait Implementations§
Source§impl<'a> Clone for NativeOperation<'a>
impl<'a> Clone for NativeOperation<'a>
impl<'a> Copy for NativeOperation<'a>
Auto Trait Implementations§
impl<'a> Forget for NativeOperation<'a>
impl<'a> Freeze for NativeOperation<'a>
impl<'a> Move for NativeOperation<'a>
impl<'a> RefUnwindSafe for NativeOperation<'a>
impl<'a> Send for NativeOperation<'a>
impl<'a> Sync for NativeOperation<'a>
impl<'a> Unpin for NativeOperation<'a>
impl<'a> UnsafeUnpin for NativeOperation<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for NativeOperation<'a>where
&'a str: UnwindSafe,
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