Skip to main content

InheritedSVG

Struct InheritedSVG 

Source
pub struct InheritedSVG {
    pub fill: T,
    pub fill_opacity: T,
    pub fill_rule: T,
    pub stroke: T,
    pub stroke_dasharray: T,
    pub stroke_dashoffset: T,
    pub stroke_miterlimit: T,
    pub stroke_opacity: T,
    pub stroke_width: T,
    pub stroke_linecap: T,
    pub stroke_linejoin: T,
}
Expand description

The InheritedSVG style struct.

Fields§

§fill: T

The fill computed value.

§fill_opacity: T

The fill-opacity computed value.

§fill_rule: T

The fill-rule computed value.

§stroke: T

The stroke computed value.

§stroke_dasharray: T

The stroke-dasharray computed value.

§stroke_dashoffset: T

The stroke-dashoffset computed value.

§stroke_miterlimit: T

The stroke-miterlimit computed value.

§stroke_opacity: T

The stroke-opacity computed value.

§stroke_width: T

The stroke-width computed value.

§stroke_linecap: T

The stroke-linecap computed value.

§stroke_linejoin: T

The stroke-linejoin computed value.

Implementations§

Source§

impl InheritedSVG

Source

pub fn set_fill(&mut self, v: T)

Set fill.

Source

pub fn copy_fill_from(&mut self, other: &Self)

Set fill from other struct.

Source

pub fn reset_fill(&mut self, other: &Self)

Reset fill from the initial struct.

Source

pub fn clone_fill(&self) -> T

Get the computed value for fill.

Source

pub fn fill_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for fill.

Source

pub fn set_fill_opacity(&mut self, v: T)

Set fill-opacity.

Source

pub fn copy_fill_opacity_from(&mut self, other: &Self)

Set fill-opacity from other struct.

Source

pub fn reset_fill_opacity(&mut self, other: &Self)

Reset fill-opacity from the initial struct.

Source

pub fn clone_fill_opacity(&self) -> T

Get the computed value for fill-opacity.

Source

pub fn fill_opacity_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for fill-opacity.

Source

pub fn set_fill_rule(&mut self, v: T)

Set fill-rule.

Source

pub fn copy_fill_rule_from(&mut self, other: &Self)

Set fill-rule from other struct.

Source

pub fn reset_fill_rule(&mut self, other: &Self)

Reset fill-rule from the initial struct.

Source

pub fn clone_fill_rule(&self) -> T

Get the computed value for fill-rule.

Source

pub fn fill_rule_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for fill-rule.

Source

pub fn set_stroke(&mut self, v: T)

Set stroke.

Source

pub fn copy_stroke_from(&mut self, other: &Self)

Set stroke from other struct.

Source

pub fn reset_stroke(&mut self, other: &Self)

Reset stroke from the initial struct.

Source

pub fn clone_stroke(&self) -> T

Get the computed value for stroke.

Source

pub fn stroke_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke.

Source

pub fn set_stroke_dasharray(&mut self, v: T)

Set stroke-dasharray.

Source

pub fn copy_stroke_dasharray_from(&mut self, other: &Self)

Set stroke-dasharray from other struct.

Source

pub fn reset_stroke_dasharray(&mut self, other: &Self)

Reset stroke-dasharray from the initial struct.

Source

pub fn clone_stroke_dasharray(&self) -> T

Get the computed value for stroke-dasharray.

Source

pub fn stroke_dasharray_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke-dasharray.

Source

pub fn set_stroke_dashoffset(&mut self, v: T)

Set stroke-dashoffset.

Source

pub fn copy_stroke_dashoffset_from(&mut self, other: &Self)

Set stroke-dashoffset from other struct.

Source

pub fn reset_stroke_dashoffset(&mut self, other: &Self)

Reset stroke-dashoffset from the initial struct.

Source

pub fn clone_stroke_dashoffset(&self) -> T

Get the computed value for stroke-dashoffset.

Source

pub fn stroke_dashoffset_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke-dashoffset.

Source

pub fn set_stroke_miterlimit(&mut self, v: T)

Set stroke-miterlimit.

Source

pub fn copy_stroke_miterlimit_from(&mut self, other: &Self)

Set stroke-miterlimit from other struct.

Source

pub fn reset_stroke_miterlimit(&mut self, other: &Self)

Reset stroke-miterlimit from the initial struct.

Source

pub fn clone_stroke_miterlimit(&self) -> T

Get the computed value for stroke-miterlimit.

Source

pub fn stroke_miterlimit_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke-miterlimit.

Source

pub fn set_stroke_opacity(&mut self, v: T)

Set stroke-opacity.

Source

pub fn copy_stroke_opacity_from(&mut self, other: &Self)

Set stroke-opacity from other struct.

Source

pub fn reset_stroke_opacity(&mut self, other: &Self)

Reset stroke-opacity from the initial struct.

Source

pub fn clone_stroke_opacity(&self) -> T

Get the computed value for stroke-opacity.

Source

pub fn stroke_opacity_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke-opacity.

Source

pub fn set_stroke_width(&mut self, v: T)

Set stroke-width.

Source

pub fn copy_stroke_width_from(&mut self, other: &Self)

Set stroke-width from other struct.

Source

pub fn reset_stroke_width(&mut self, other: &Self)

Reset stroke-width from the initial struct.

Source

pub fn clone_stroke_width(&self) -> T

Get the computed value for stroke-width.

Source

pub fn stroke_width_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke-width.

Source

pub fn set_stroke_linecap(&mut self, v: T)

Set stroke-linecap.

Source

pub fn copy_stroke_linecap_from(&mut self, other: &Self)

Set stroke-linecap from other struct.

Source

pub fn reset_stroke_linecap(&mut self, other: &Self)

Reset stroke-linecap from the initial struct.

Source

pub fn clone_stroke_linecap(&self) -> T

Get the computed value for stroke-linecap.

Source

pub fn stroke_linecap_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke-linecap.

Source

pub fn set_stroke_linejoin(&mut self, v: T)

Set stroke-linejoin.

Source

pub fn copy_stroke_linejoin_from(&mut self, other: &Self)

Set stroke-linejoin from other struct.

Source

pub fn reset_stroke_linejoin(&mut self, other: &Self)

Reset stroke-linejoin from the initial struct.

Source

pub fn clone_stroke_linejoin(&self) -> T

Get the computed value for stroke-linejoin.

Source

pub fn stroke_linejoin_equals(&self, other: &Self) -> bool

Whether self and other have the same computed value for stroke-linejoin.

Trait Implementations§

Source§

impl Clone for InheritedSVG

Source§

fn clone(&self) -> InheritedSVG

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 Debug for InheritedSVG

Source§

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

Formats the value using the given formatter. Read more
Source§

impl MallocSizeOf for InheritedSVG

Source§

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

impl PartialEq for InheritedSVG

Source§

fn eq(&self, other: &InheritedSVG) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for InheritedSVG

Auto Trait Implementations§

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<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> 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> MaybeBoxed<Box<T>> for T

Source§

fn maybe_boxed(self) -> Box<T>

Convert
Source§

impl<T> MaybeBoxed<T> for T

Source§

fn maybe_boxed(self) -> T

Convert
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<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 = 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> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T