pub enum StyleReference {
Line(StyleMatrixReference),
Fill(StyleMatrixReference),
Effect(StyleMatrixReference),
Font(FontReference),
}Expand description
One of the four style-reference forms carried by a shape style.
Variants§
Line(StyleMatrixReference)
Fill(StyleMatrixReference)
Effect(StyleMatrixReference)
Font(FontReference)
Implementations§
Source§impl StyleReference
impl StyleReference
Sourcepub fn from_xml(xml: &[u8]) -> Result<Self>
pub fn from_xml(xml: &[u8]) -> Result<Self>
Parses one complete style-reference element with any namespace prefix.
Sourcepub fn fill_style_selection(&self) -> Result<FillStyleSelection>
pub fn fill_style_selection(&self) -> Result<FillStyleSelection>
Returns the checked format-scheme selection for a fill reference.
Trait Implementations§
Source§impl Clone for StyleReference
impl Clone for StyleReference
Source§fn clone(&self) -> StyleReference
fn clone(&self) -> StyleReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleReference
impl Debug for StyleReference
impl Eq for StyleReference
Source§impl PartialEq for StyleReference
impl PartialEq for StyleReference
impl StructuralPartialEq for StyleReference
Auto Trait Implementations§
impl Freeze for StyleReference
impl RefUnwindSafe for StyleReference
impl Send for StyleReference
impl Sync for StyleReference
impl Unpin for StyleReference
impl UnsafeUnpin for StyleReference
impl UnwindSafe for StyleReference
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