pub struct Interpreter<SD: SignedDistance, const STACK_DEPTH: usize = 64> { /* private fields */ }Implementations§
Source§impl<SD: SignedDistance + Copy + Clone, const STACK_DEPTH: usize> Interpreter<SD, STACK_DEPTH>
impl<SD: SignedDistance + Copy + Clone, const STACK_DEPTH: usize> Interpreter<SD, STACK_DEPTH>
pub fn new_context<'a>( opcodes: &'a [Opcode], constants: &'a [f32], ) -> InterpreterContext<'a, SD, STACK_DEPTH>
pub fn interpret( ctx: &mut InterpreterContext<'_, SD, STACK_DEPTH>, position: Vec3, ) -> Option<SD>
pub fn interpret_unchecked( ctx: &mut InterpreterContext<'_, SD, STACK_DEPTH>, position: Vec3, ) -> SD
Trait Implementations§
Source§impl<SD: Clone + SignedDistance, const STACK_DEPTH: usize> Clone for Interpreter<SD, STACK_DEPTH>
impl<SD: Clone + SignedDistance, const STACK_DEPTH: usize> Clone for Interpreter<SD, STACK_DEPTH>
Source§fn clone(&self) -> Interpreter<SD, STACK_DEPTH>
fn clone(&self) -> Interpreter<SD, STACK_DEPTH>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<SD: SignedDistance> Default for Interpreter<SD>
impl<SD: SignedDistance> Default for Interpreter<SD>
impl<SD: Copy + SignedDistance, const STACK_DEPTH: usize> Copy for Interpreter<SD, STACK_DEPTH>
Auto Trait Implementations§
impl<SD, const STACK_DEPTH: usize> Freeze for Interpreter<SD, STACK_DEPTH>
impl<SD, const STACK_DEPTH: usize> RefUnwindSafe for Interpreter<SD, STACK_DEPTH>where
SD: RefUnwindSafe,
impl<SD, const STACK_DEPTH: usize> Send for Interpreter<SD, STACK_DEPTH>where
SD: Send,
impl<SD, const STACK_DEPTH: usize> Sync for Interpreter<SD, STACK_DEPTH>where
SD: Sync,
impl<SD, const STACK_DEPTH: usize> Unpin for Interpreter<SD, STACK_DEPTH>where
SD: Unpin,
impl<SD, const STACK_DEPTH: usize> UnwindSafe for Interpreter<SD, STACK_DEPTH>where
SD: 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