pub struct SVG {
pub clip_path: T,
pub mask_image: T,
}Expand description
The SVG style struct.
Fields§
§clip_path: TThe clip-path computed value.
mask_image: TThe mask-image computed value.
Implementations§
Source§impl SVG
impl SVG
Sourcepub fn set_clip_path(&mut self, v: T)
pub fn set_clip_path(&mut self, v: T)
Set clip-path.
Sourcepub fn copy_clip_path_from(&mut self, other: &Self)
pub fn copy_clip_path_from(&mut self, other: &Self)
Set clip-path from other struct.
Sourcepub fn reset_clip_path(&mut self, other: &Self)
pub fn reset_clip_path(&mut self, other: &Self)
Reset clip-path from the initial struct.
Sourcepub fn clone_clip_path(&self) -> T
pub fn clone_clip_path(&self) -> T
Get the computed value for clip-path.
Sourcepub fn set_mask_image(&mut self, v: T)
pub fn set_mask_image(&mut self, v: T)
Set mask-image.
Sourcepub fn copy_mask_image_from(&mut self, other: &Self)
pub fn copy_mask_image_from(&mut self, other: &Self)
Set mask-image from other struct.
Sourcepub fn reset_mask_image(&mut self, other: &Self)
pub fn reset_mask_image(&mut self, other: &Self)
Reset mask-image from the initial struct.
Sourcepub fn clone_mask_image(&self) -> T
pub fn clone_mask_image(&self) -> T
Get the computed value for mask-image.
Trait Implementations§
Source§impl MallocSizeOf for SVG
impl MallocSizeOf for SVG
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
impl StructuralPartialEq for SVG
Auto Trait Implementations§
impl Freeze for SVG
impl RefUnwindSafe for SVG
impl Send for SVG
impl Sync for SVG
impl Unpin for SVG
impl UnwindSafe for SVG
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert