VectorObjectBuilder

Struct VectorObjectBuilder 

Source
pub struct VectorObjectBuilder { /* private fields */ }
Expand description

A VectorObjectBuilder can be used to build a VectorObject with operations.

Implementations§

Source§

impl VectorObjectBuilder

Source

pub fn new(vector_object: &VectorObject) -> VectorObjectBuilder

Creates a new VectorObjectBuilder from a VectorObject.

Source

pub fn default_tip_shape(tip_length: f64) -> VectorObjectBuilder

Returns the default tip shape pointing to the right and centered at the origin as a VectorObjectBuilder.

Source

pub fn from_svg( svg: String, font_faces: Option<Vec<FontFace>>, image_library: Option<ImageLibrary>, ) -> VectorObjectBuilder

Creates a new VectorObjectBuilder from an SVG string.

Source

pub fn clone_js(&self) -> VectorObjectBuilder

Clones the VectorObjectBuilder.

Source

pub fn default_vector_object_builder() -> VectorObjectBuilder

Creates a VectorObjectBuilder representing an empty VectorObject.

Source

pub fn shift( self, dx: f32, dy: f32, recursive: Option<bool>, ) -> VectorObjectBuilder

Shifts the VectorObjectBuilder by the given dx and dy.

Source

pub fn move_to( self, point: Point2D, recursive: Option<bool>, ) -> VectorObjectBuilder

Centers the VectorObjectBuilder at the given Point2D.

Source

pub fn scale( self, factor_x: f32, factor_y: f32, about_point: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder

Scales the VectorObjectBuilder by the given factor.

Source

pub fn scale_to_width( self, width: f32, stretch: Option<bool>, about_point: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder

Scales the VectorObjectBuilder to the given width.

Source

pub fn scale_to_height( self, height: f32, stretch: Option<bool>, about_point: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder

Scales the VectorObjectBuilder to the given height.

Source

pub fn rotate( self, angle: f32, from_point: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder

Rotates the VectorObjectBuilder by the given angle in radians.

Source

pub fn set_transform( self, matrix: TransformationMatrix, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the TransformationMatrix of the VectorObjectBuilder.

Source

pub fn apply_transform( self, matrix: TransformationMatrix, recursive: Option<bool>, ) -> VectorObjectBuilder

Applies the TransformationMatrix to the VectorObjectBuilder.

Source

pub fn add_children( self, children: Vec<VectorObjectBuilder>, ) -> VectorObjectBuilder

Adds a child to the VectorObjectBuilder.

Source

pub fn insert_child( self, index: usize, child: VectorObjectBuilder, ) -> VectorObjectBuilder

Inserts a child into the VectorObjectBuilder at the given index.

Source

pub fn insert_children( self, index: usize, children: Vec<VectorObjectBuilder>, ) -> VectorObjectBuilder

Inserts children into the VectorObjectBuilder at the given index.

Source

pub fn remove_child_by_index(self, index: usize) -> VectorObjectBuilder

Removes a child from the VectorObjectBuilder given its index.

Source

pub fn remove_child_by_name(self, name: String) -> VectorObjectBuilder

Removes a child from the VectorObjectBuilder given its name.

Source

pub fn match_style_properties( self, vector_object_builder: VectorObjectBuilder, ) -> VectorObjectBuilder

Matches the style properties of the VectorObjectBuilder with another VectorObject.

Source

pub fn set_actual_path(self, actual_path: Path2D) -> VectorObjectBuilder

Sets the actual path of the VectorObjectBuilder. Actual path is the path that is drawn with its transformation matrix applied.

Source

pub fn become_partial( self, start: f32, end: f32, samples: Option<usize>, extra_length: Option<f32>, recursive: Option<bool>, ) -> VectorObjectBuilder

Trims the stroke of the VectorObjectBuilder to the given start and end proportions.

Source

pub fn pointwise_become_partial( self, start: f32, end: f32, recursive: Option<bool>, ) -> VectorObjectBuilder

Trims the path of the VectorObjectBuilder to the given start and end proportions.

Source

pub fn move_point(self, point: &Point2D) -> VectorObjectBuilder

Moves the current drawing point to the given Point2D.

Source

pub fn line_to(self, p: &Point2D) -> VectorObjectBuilder

Draws a line from the current drawing point to the given Point2D.

Source

pub fn quadratic_curve_to( self, p1: &Point2D, p2: &Point2D, ) -> VectorObjectBuilder

Draws a quadratic bezier curve from the current drawing point with the given control Point2D and end Point2D.

Source

pub fn bezier_curve_to( self, p1: &Point2D, p2: &Point2D, p3: &Point2D, ) -> VectorObjectBuilder

Draws a cubic bezier curve from the current drawing point with the given control Point2Ds and end Point2D.

Source

pub fn close(self) -> VectorObjectBuilder

Closes the current subpath of the VectorObjectBuilder.

Source

pub fn fade_fill( self, factor: f32, recursive: Option<bool>, ) -> VectorObjectBuilder

Fades fill’s opacity of the VectorObjectBuilder by the given factor.

Source

pub fn fade_stroke( self, factor: f32, recursive: Option<bool>, ) -> VectorObjectBuilder

Fades stroke’s opacity of the VectorObjectBuilder by the given factor.

Source

pub fn set_path(self, path: Path2D) -> VectorObjectBuilder

Sets the Path2D of the VectorObjectBuilder.

Source

pub fn set_fill( self, fill: Style, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the fill Style of the VectorObjectBuilder.

Source

pub fn set_fill_rule( self, fill_rule: String, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the fill rule of the VectorObjectBuilder.

Source

pub fn set_stroke( self, stroke: Style, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the stroke Style of the VectorObjectBuilder.

Source

pub fn set_stroke_width( self, stroke_width: f32, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the stroke width of the VectorObjectBuilder.

Source

pub fn set_stroke_line_cap( self, stroke_line_cap: String, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the stroke line cap of the VectorObjectBuilder.

Source

pub fn set_stroke_line_join( self, stroke_line_join: String, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the stroke line join of the VectorObjectBuilder.

Source

pub fn set_stroke_miter_limit( self, stroke_miter_limit: f32, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the stroke miter limit of the VectorObjectBuilder.

Source

pub fn set_stroke_dash_offset( self, stroke_dash_offset: f32, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the stroke dash offset of the VectorObjectBuilder.

Source

pub fn set_stroke_dash_array( self, stroke_dash_array: Vec<f32>, recursive: Option<bool>, ) -> VectorObjectBuilder

Sets the stroke dash array of the VectorObjectBuilder.

Source

pub fn set_children( self, children: Vec<VectorObjectBuilder>, ) -> VectorObjectBuilder

Sets the children of the VectorObjectBuilder.

Source

pub fn set_name(self, name: Option<String>) -> VectorObjectBuilder

Sets the name of the VectorObjectBuilder.

Source

pub fn actual_path_as_path( self, untransform: Option<bool>, recursive: Option<bool>, ) -> VectorObjectBuilder

Applies the current transformation to the path of the VectorObjectBuilder.

Source

pub fn add_child(self, child: VectorObjectBuilder) -> VectorObjectBuilder

Adds a child to the VectorObjectBuilder.

Source

pub fn remove_children_at_indices( self, indices: Vec<usize>, ) -> VectorObjectBuilder

Removes all children with the given indices from the VectorObjectBuilder.

Source

pub fn remove_children_by_names(self, names: Vec<String>) -> VectorObjectBuilder

Removes all children with the given names from the VectorObjectBuilder.

Source

pub fn set_slice_children( self, start: usize, end: usize, children: Vec<VectorObjectBuilder>, ) -> VectorObjectBuilder

Sets the children from the start index to the end index of the VectorObjectBuilder.

Source

pub fn next_to_point( self, point: Point2D, direction: Option<Point2D>, buff: Option<f32>, aligned_edge: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder

Puts the VectorObjectBuilder next to the given Point2D at the given direction, with a buff distance between them and aligning at the given edge.

Source

pub fn next_to_other( self, other: VectorObjectBuilder, direction: Option<Point2D>, buff: Option<f32>, aligned_edge: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder

Puts the VectorObjectBuilder next to the given VectorObjectBuilder at the given direction, with a buff distance between them and aligning at the given edge.

Source

pub fn arrange_children( self, direction: Option<Point2D>, buff: Option<f32>, aligned_edge: Option<Point2D>, center: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder

Arranges the children of the VectorObjectBuilder in the given direction, with a buff distance between them and aligning at the given edge.

Source

pub fn reverse_path(self) -> VectorObjectBuilder

Reverses the path of the VectorObjectBuilder.

Source

pub fn lerp_fill( self, fill: Style, t: f32, x: Option<f32>, y: Option<f32>, width: Option<f32>, height: Option<f32>, data_width: Option<usize>, data_height: Option<usize>, recursive: Option<bool>, ) -> VectorObjectBuilder

Linearly interpolates the fill Style of the VectorObjectBuilder with another VectorObjectBuilder.

Source

pub fn lerp_stroke( self, stroke: Style, t: f32, x: Option<f32>, y: Option<f32>, width: Option<f32>, height: Option<f32>, data_width: Option<usize>, data_height: Option<usize>, recursive: Option<bool>, ) -> VectorObjectBuilder

Linearly interpolates the stroke Style of the VectorObjectBuilder with another VectorObjectBuilder.

Source

pub fn build(self) -> VectorObject

Builds the VectorObject by applying sequentially all the operations to the VectorObjectBuilder.

Source§

impl VectorObjectBuilder

Trait Implementations§

Source§

impl Clone for VectorObjectBuilder

Source§

fn clone(&self) -> VectorObjectBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Default for VectorObjectBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<VectorObjectBuilder> for JsValue

Source§

fn from(value: VectorObjectBuilder) -> Self

Converts to this type from the input type.
Source§

impl FromWasmAbi for VectorObjectBuilder

Source§

type Abi = u32

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
Source§

impl IntoWasmAbi for VectorObjectBuilder

Source§

type Abi = u32

The Wasm ABI type that this converts into when crossing the ABI boundary.
Source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Source§

impl LongRefFromWasmAbi for VectorObjectBuilder

Source§

type Abi = u32

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRef<VectorObjectBuilder>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl OptionFromWasmAbi for VectorObjectBuilder

Source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl OptionIntoWasmAbi for VectorObjectBuilder

Source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl RefFromWasmAbi for VectorObjectBuilder

Source§

type Abi = u32

The Wasm ABI type references to Self are recovered from.
Source§

type Anchor = RcRef<VectorObjectBuilder>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous.
Source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
Source§

impl RefMutFromWasmAbi for VectorObjectBuilder

Source§

type Abi = u32

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRefMut<VectorObjectBuilder>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl TryFromJsValue for VectorObjectBuilder

Source§

type Error = JsValue

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

fn try_from_js_value(value: JsValue) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl VectorFromWasmAbi for VectorObjectBuilder

Source§

impl VectorIntoWasmAbi for VectorObjectBuilder

Source§

impl WasmDescribe for VectorObjectBuilder

Source§

impl WasmDescribeVector for VectorObjectBuilder

Source§

impl SupportsConstructor for VectorObjectBuilder

Source§

impl SupportsInstanceProperty for VectorObjectBuilder

Source§

impl SupportsStaticProperty for VectorObjectBuilder

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,

Source§

fn adapt_into_using<M>(self, method: M) -> D
where M: TransformMatrix<T>,

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
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, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> Filterable for T

Source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
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, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
Source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Source§

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoStimulus<T> for T

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> ReturnWasmAbi for T
where T: IntoWasmAbi,

Source§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> ErasedDestructor for T
where T: 'static,