Struct style::properties::generated::style_structs::SVG
source · pub struct SVG {
pub clip_path: T,
}
Expand description
The SVG style struct.
Fields§
§clip_path: T
The clip-path 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.
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> 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