pub struct Margin {
pub before: [usize; 3],
pub after: [usize; 3],
}Expand description
How far an op looks beyond its piece, per axis of the app’s walk (lucem: z, y, x in pixels; dsp-kitchen: samples before and after). Axes the app does not walk stay 0.
Fields§
§before: [usize; 3]Before the piece, per axis.
after: [usize; 3]After the piece, per axis.
Implementations§
Source§impl Margin
impl Margin
Sourcepub fn around(n: usize, axes: usize) -> Self
pub fn around(n: usize, axes: usize) -> Self
n on both sides of every axis the app walks (axes of them, from the last: one axis is
time, two are y and x).
Sourcepub fn then(self, next: Margin) -> Margin
pub fn then(self, next: Margin) -> Margin
The margin of two ops in a row: what each needs adds up.
Trait Implementations§
impl Copy for Margin
Source§impl<'de> Deserialize<'de> for Margin
impl<'de> Deserialize<'de> for Margin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Margin
Source§impl JsonSchema for Margin
impl JsonSchema for Margin
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Margin
Auto Trait Implementations§
impl Forget for Margin
impl Freeze for Margin
impl Move for Margin
impl RefUnwindSafe for Margin
impl Send for Margin
impl Sync for Margin
impl Unpin for Margin
impl UnsafeUnpin for Margin
impl UnwindSafe for Margin
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