Skip to main content

SurfaceBasis

Struct SurfaceBasis 

Source
pub struct SurfaceBasis<'a> {
    pub degree: (i64, i64),
    pub u: SurfaceKnots<'a>,
    pub v: SurfaceKnots<'a>,
    pub form: &'a str,
    pub knot_spec: &'a str,
}
Expand description

Everything a B-spline surface states apart from its control grid.

Grouped because the u and v data must be kept straight: four bare arguments of two types invite a transposition that still compiles.

Fields§

§degree: (i64, i64)

UDegree and VDegree, in that order.

§u: SurfaceKnots<'a>

The u knot vector, checked against the grid’s row count.

§v: SurfaceKnots<'a>

The v knot vector, checked against the grid’s column count.

§form: &'a str

SurfaceForm, informational.

§knot_spec: &'a str

KnotSpec, e.g. UNSPECIFIED.

Trait Implementations§

Source§

impl<'a> Clone for SurfaceBasis<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for SurfaceBasis<'a>

Source§

impl<'a> Debug for SurfaceBasis<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for SurfaceBasis<'a>

§

impl<'a> RefUnwindSafe for SurfaceBasis<'a>

§

impl<'a> Send for SurfaceBasis<'a>

§

impl<'a> Sync for SurfaceBasis<'a>

§

impl<'a> Unpin for SurfaceBasis<'a>

§

impl<'a> UnsafeUnpin for SurfaceBasis<'a>

§

impl<'a> UnwindSafe for SurfaceBasis<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.