pub struct VectorObjectBuilder { /* private fields */ }Expand description
A VectorObjectBuilder can be used to build a VectorObject with operations.
Implementations§
Source§impl VectorObjectBuilder
impl VectorObjectBuilder
Sourcepub fn new(vector_object: &VectorObject) -> VectorObjectBuilder
pub fn new(vector_object: &VectorObject) -> VectorObjectBuilder
Creates a new VectorObjectBuilder from a VectorObject.
Sourcepub fn default_tip_shape(tip_length: f64) -> VectorObjectBuilder
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.
Sourcepub fn from_svg(
svg: String,
font_faces: Option<Vec<FontFace>>,
image_library: Option<ImageLibrary>,
) -> VectorObjectBuilder
pub fn from_svg( svg: String, font_faces: Option<Vec<FontFace>>, image_library: Option<ImageLibrary>, ) -> VectorObjectBuilder
Creates a new VectorObjectBuilder from an SVG string.
Sourcepub fn clone_js(&self) -> VectorObjectBuilder
pub fn clone_js(&self) -> VectorObjectBuilder
Clones the VectorObjectBuilder.
Sourcepub fn default_vector_object_builder() -> VectorObjectBuilder
pub fn default_vector_object_builder() -> VectorObjectBuilder
Creates a VectorObjectBuilder representing an empty VectorObject.
Sourcepub fn shift(
self,
dx: f32,
dy: f32,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn shift( self, dx: f32, dy: f32, recursive: Option<bool>, ) -> VectorObjectBuilder
Shifts the VectorObjectBuilder by the given dx and dy.
Sourcepub fn move_to(
self,
point: Point2D,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn move_to( self, point: Point2D, recursive: Option<bool>, ) -> VectorObjectBuilder
Centers the VectorObjectBuilder at the given Point2D.
Sourcepub fn scale(
self,
factor_x: f32,
factor_y: f32,
about_point: Option<Point2D>,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn scale_to_width(
self,
width: f32,
stretch: Option<bool>,
about_point: Option<Point2D>,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn scale_to_height(
self,
height: f32,
stretch: Option<bool>,
about_point: Option<Point2D>,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn rotate(
self,
angle: f32,
from_point: Option<Point2D>,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn rotate( self, angle: f32, from_point: Option<Point2D>, recursive: Option<bool>, ) -> VectorObjectBuilder
Rotates the VectorObjectBuilder by the given angle in radians.
Sourcepub fn set_transform(
self,
matrix: TransformationMatrix,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_transform( self, matrix: TransformationMatrix, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the TransformationMatrix of the VectorObjectBuilder.
Sourcepub fn apply_transform(
self,
matrix: TransformationMatrix,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn apply_transform( self, matrix: TransformationMatrix, recursive: Option<bool>, ) -> VectorObjectBuilder
Applies the TransformationMatrix to the VectorObjectBuilder.
Sourcepub fn add_children(
self,
children: Vec<VectorObjectBuilder>,
) -> VectorObjectBuilder
pub fn add_children( self, children: Vec<VectorObjectBuilder>, ) -> VectorObjectBuilder
Adds a child to the VectorObjectBuilder.
Sourcepub fn insert_child(
self,
index: usize,
child: VectorObjectBuilder,
) -> VectorObjectBuilder
pub fn insert_child( self, index: usize, child: VectorObjectBuilder, ) -> VectorObjectBuilder
Inserts a child into the VectorObjectBuilder at the given index.
Sourcepub fn insert_children(
self,
index: usize,
children: Vec<VectorObjectBuilder>,
) -> VectorObjectBuilder
pub fn insert_children( self, index: usize, children: Vec<VectorObjectBuilder>, ) -> VectorObjectBuilder
Inserts children into the VectorObjectBuilder at the given index.
Sourcepub fn remove_child_by_index(self, index: usize) -> VectorObjectBuilder
pub fn remove_child_by_index(self, index: usize) -> VectorObjectBuilder
Removes a child from the VectorObjectBuilder given its index.
Sourcepub fn remove_child_by_name(self, name: String) -> VectorObjectBuilder
pub fn remove_child_by_name(self, name: String) -> VectorObjectBuilder
Removes a child from the VectorObjectBuilder given its name.
Sourcepub fn match_style_properties(
self,
vector_object_builder: VectorObjectBuilder,
) -> VectorObjectBuilder
pub fn match_style_properties( self, vector_object_builder: VectorObjectBuilder, ) -> VectorObjectBuilder
Matches the style properties of the VectorObjectBuilder with another VectorObject.
Sourcepub fn set_actual_path(self, actual_path: Path2D) -> VectorObjectBuilder
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.
Sourcepub fn become_partial(
self,
start: f32,
end: f32,
samples: Option<usize>,
extra_length: Option<f32>,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn pointwise_become_partial(
self,
start: f32,
end: f32,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn move_point(self, point: &Point2D) -> VectorObjectBuilder
pub fn move_point(self, point: &Point2D) -> VectorObjectBuilder
Moves the current drawing point to the given Point2D.
Sourcepub fn line_to(self, p: &Point2D) -> VectorObjectBuilder
pub fn line_to(self, p: &Point2D) -> VectorObjectBuilder
Draws a line from the current drawing point to the given Point2D.
Sourcepub fn quadratic_curve_to(
self,
p1: &Point2D,
p2: &Point2D,
) -> VectorObjectBuilder
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.
Sourcepub fn bezier_curve_to(
self,
p1: &Point2D,
p2: &Point2D,
p3: &Point2D,
) -> VectorObjectBuilder
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.
Sourcepub fn close(self) -> VectorObjectBuilder
pub fn close(self) -> VectorObjectBuilder
Closes the current subpath of the VectorObjectBuilder.
Sourcepub fn fade_fill(
self,
factor: f32,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn fade_fill( self, factor: f32, recursive: Option<bool>, ) -> VectorObjectBuilder
Fades fill’s opacity of the VectorObjectBuilder by the given factor.
Sourcepub fn fade_stroke(
self,
factor: f32,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn fade_stroke( self, factor: f32, recursive: Option<bool>, ) -> VectorObjectBuilder
Fades stroke’s opacity of the VectorObjectBuilder by the given factor.
Sourcepub fn set_path(self, path: Path2D) -> VectorObjectBuilder
pub fn set_path(self, path: Path2D) -> VectorObjectBuilder
Sets the Path2D of the VectorObjectBuilder.
Sourcepub fn set_fill(
self,
fill: Style,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_fill( self, fill: Style, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the fill Style of the VectorObjectBuilder.
Sourcepub fn set_fill_rule(
self,
fill_rule: String,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_fill_rule( self, fill_rule: String, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the fill rule of the VectorObjectBuilder.
Sourcepub fn set_stroke(
self,
stroke: Style,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_stroke( self, stroke: Style, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the stroke Style of the VectorObjectBuilder.
Sourcepub fn set_stroke_width(
self,
stroke_width: f32,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_stroke_width( self, stroke_width: f32, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the stroke width of the VectorObjectBuilder.
Sourcepub fn set_stroke_line_cap(
self,
stroke_line_cap: String,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_stroke_line_cap( self, stroke_line_cap: String, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the stroke line cap of the VectorObjectBuilder.
Sourcepub fn set_stroke_line_join(
self,
stroke_line_join: String,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_stroke_line_join( self, stroke_line_join: String, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the stroke line join of the VectorObjectBuilder.
Sourcepub fn set_stroke_miter_limit(
self,
stroke_miter_limit: f32,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_stroke_miter_limit( self, stroke_miter_limit: f32, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the stroke miter limit of the VectorObjectBuilder.
Sourcepub fn set_stroke_dash_offset(
self,
stroke_dash_offset: f32,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_stroke_dash_offset( self, stroke_dash_offset: f32, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the stroke dash offset of the VectorObjectBuilder.
Sourcepub fn set_stroke_dash_array(
self,
stroke_dash_array: Vec<f32>,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn set_stroke_dash_array( self, stroke_dash_array: Vec<f32>, recursive: Option<bool>, ) -> VectorObjectBuilder
Sets the stroke dash array of the VectorObjectBuilder.
Sourcepub fn set_children(
self,
children: Vec<VectorObjectBuilder>,
) -> VectorObjectBuilder
pub fn set_children( self, children: Vec<VectorObjectBuilder>, ) -> VectorObjectBuilder
Sets the children of the VectorObjectBuilder.
Sourcepub fn set_name(self, name: Option<String>) -> VectorObjectBuilder
pub fn set_name(self, name: Option<String>) -> VectorObjectBuilder
Sets the name of the VectorObjectBuilder.
Sourcepub fn actual_path_as_path(
self,
untransform: Option<bool>,
recursive: Option<bool>,
) -> VectorObjectBuilder
pub fn actual_path_as_path( self, untransform: Option<bool>, recursive: Option<bool>, ) -> VectorObjectBuilder
Applies the current transformation to the path of the VectorObjectBuilder.
Sourcepub fn add_child(self, child: VectorObjectBuilder) -> VectorObjectBuilder
pub fn add_child(self, child: VectorObjectBuilder) -> VectorObjectBuilder
Adds a child to the VectorObjectBuilder.
Sourcepub fn remove_children_at_indices(
self,
indices: Vec<usize>,
) -> VectorObjectBuilder
pub fn remove_children_at_indices( self, indices: Vec<usize>, ) -> VectorObjectBuilder
Removes all children with the given indices from the VectorObjectBuilder.
Sourcepub fn remove_children_by_names(self, names: Vec<String>) -> VectorObjectBuilder
pub fn remove_children_by_names(self, names: Vec<String>) -> VectorObjectBuilder
Removes all children with the given names from the VectorObjectBuilder.
Sourcepub fn set_slice_children(
self,
start: usize,
end: usize,
children: Vec<VectorObjectBuilder>,
) -> VectorObjectBuilder
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.
Sourcepub fn next_to_point(
self,
point: Point2D,
direction: Option<Point2D>,
buff: Option<f32>,
aligned_edge: Option<Point2D>,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn next_to_other(
self,
other: VectorObjectBuilder,
direction: Option<Point2D>,
buff: Option<f32>,
aligned_edge: Option<Point2D>,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn arrange_children(
self,
direction: Option<Point2D>,
buff: Option<f32>,
aligned_edge: Option<Point2D>,
center: Option<Point2D>,
recursive: Option<bool>,
) -> VectorObjectBuilder
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.
Sourcepub fn reverse_path(self) -> VectorObjectBuilder
pub fn reverse_path(self) -> VectorObjectBuilder
Reverses the path of the VectorObjectBuilder.
Sourcepub 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
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.
Sourcepub 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
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.
Sourcepub fn build(self) -> VectorObject
pub fn build(self) -> VectorObject
Builds the VectorObject by applying sequentially all the operations to the VectorObjectBuilder.
Source§impl VectorObjectBuilder
impl VectorObjectBuilder
pub fn from_node(node: &Node) -> VectorObjectBuilder
pub fn from_path(internal_path: &Path) -> VectorObjectBuilder
pub fn from_group(internal_group: &Group) -> VectorObjectBuilder
pub fn from_text(text: &Text) -> VectorObjectBuilder
pub fn from_image(image: &Image) -> VectorObjectBuilder
Trait Implementations§
Source§impl Clone for VectorObjectBuilder
impl Clone for VectorObjectBuilder
Source§fn clone(&self) -> VectorObjectBuilder
fn clone(&self) -> VectorObjectBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for VectorObjectBuilder
impl Default for VectorObjectBuilder
Source§impl From<VectorObjectBuilder> for JsValue
impl From<VectorObjectBuilder> for JsValue
Source§fn from(value: VectorObjectBuilder) -> Self
fn from(value: VectorObjectBuilder) -> Self
Source§impl FromWasmAbi for VectorObjectBuilder
impl FromWasmAbi for VectorObjectBuilder
Source§impl IntoWasmAbi for VectorObjectBuilder
impl IntoWasmAbi for VectorObjectBuilder
Source§impl RefFromWasmAbi for VectorObjectBuilder
impl RefFromWasmAbi for VectorObjectBuilder
Source§type Anchor = RcRef<VectorObjectBuilder>
type Anchor = RcRef<VectorObjectBuilder>
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§impl TryFromJsValue for VectorObjectBuilder
impl TryFromJsValue for VectorObjectBuilder
Source§impl VectorFromWasmAbi for VectorObjectBuilder
impl VectorFromWasmAbi for VectorObjectBuilder
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VectorObjectBuilder]>
Source§impl VectorIntoWasmAbi for VectorObjectBuilder
impl VectorIntoWasmAbi for VectorObjectBuilder
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VectorObjectBuilder]>) -> Self::Abi
Source§impl WasmDescribeVector for VectorObjectBuilder
impl WasmDescribeVector for VectorObjectBuilder
impl SupportsConstructor for VectorObjectBuilder
impl SupportsInstanceProperty for VectorObjectBuilder
impl SupportsStaticProperty for VectorObjectBuilder
Auto Trait Implementations§
impl Freeze for VectorObjectBuilder
impl !RefUnwindSafe for VectorObjectBuilder
impl !Send for VectorObjectBuilder
impl !Sync for VectorObjectBuilder
impl Unpin for VectorObjectBuilder
impl !UnwindSafe for VectorObjectBuilder
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
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) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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)
fn as_any(&self) -> &(dyn Any + 'static)
&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)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&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
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more