pub struct FamilyParam {
pub name: &'static str,
pub ranges: &'static [FamilyRange],
}Expand description
A parameter whose meaning — and so whose reading range — depends on the family its system draws.
The generated reference prints ranges in place of the
single ParamSpec::range, because one pair would be a claim nothing holds:
parametric_curve’s n reads 1..24 on a rose and -8..8 on a
hypotrochoid. The spec’s own range stays declared and is the one a family in
this list reads — the exported schema still carries one pair per parameter.
Fields§
§name: &'static strThe parameter, as its ParamSpec names it.
ranges: &'static [FamilyRange]One entry per family of the system, in the system’s roster order.
Trait Implementations§
Source§impl Clone for FamilyParam
impl Clone for FamilyParam
Source§fn clone(&self) -> FamilyParam
fn clone(&self) -> FamilyParam
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 FamilyParam
impl Debug for FamilyParam
Source§impl PartialEq for FamilyParam
impl PartialEq for FamilyParam
Source§fn eq(&self, other: &FamilyParam) -> bool
fn eq(&self, other: &FamilyParam) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FamilyParam
impl StructuralPartialEq for FamilyParam
Auto Trait Implementations§
impl Freeze for FamilyParam
impl RefUnwindSafe for FamilyParam
impl Send for FamilyParam
impl Sync for FamilyParam
impl Unpin for FamilyParam
impl UnsafeUnpin for FamilyParam
impl UnwindSafe for FamilyParam
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