pub struct PostScript {
pub domain: Box<[f32]>,
pub range: Box<[f32]>,
pub outputs: usize,
/* private fields */
}Expand description
A type 4 function.
Fields§
§domain: Box<[f32]>/Domain.
range: Box<[f32]>/Range, which is required for this type.
outputs: usizeHow many outputs, from /Range.
Implementations§
Source§impl PostScript
impl PostScript
Sourcepub fn eval_with_diagnostics(
&self,
input: &[f32],
out: &mut [f32],
diags: &mut Diagnostics,
) -> bool
pub fn eval_with_diagnostics( &self, input: &[f32], out: &mut [f32], diags: &mut Diagnostics, ) -> bool
Evaluate, reporting what the engine noticed going wrong.
The plain eval path swallows these, which is the behaviour
contract; this variant exists so a caller that owns a diagnostics sink
can record them.
Sourcepub fn stack_depth_after(&self, input: &[f32]) -> usize
pub fn stack_depth_after(&self, input: &[f32]) -> usize
How many values the program leaves on the stack for the given input, for tests that need to see the machine rather than the function.
Trait Implementations§
Source§impl Clone for PostScript
impl Clone for PostScript
Source§fn clone(&self) -> PostScript
fn clone(&self) -> PostScript
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostScript
impl Debug for PostScript
Source§impl PartialEq for PostScript
impl PartialEq for PostScript
impl StructuralPartialEq for PostScript
Auto Trait Implementations§
impl Freeze for PostScript
impl RefUnwindSafe for PostScript
impl Send for PostScript
impl Sync for PostScript
impl Unpin for PostScript
impl UnsafeUnpin for PostScript
impl UnwindSafe for PostScript
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