[−][src]Struct svgdom::Attribute
Representation of the SVG attribute object.
Fields
name: AttributeQName
Attribute name.
value: AttributeValue
Attribute value.
Methods
impl Attribute
[src]
pub fn new<'a, N, T>(name: N, value: T) -> Attribute where
AttributeQNameRef<'a>: From<N>,
AttributeValue: From<T>,
[src]
AttributeQNameRef<'a>: From<N>,
AttributeValue: From<T>,
Constructs a new attribute.
pub fn new_default(id: AttributeId) -> Option<Attribute>
[src]
Constructs a new attribute with a default value, if it known.
pub fn id(&self) -> Option<AttributeId>
[src]
Returns an SVG attribute ID.
pub fn has_id(&self, id: AttributeId) -> bool
[src]
Returns true
if the attribute has the selected ID.
pub fn is_svg(&self) -> bool
[src]
Returns true
if the attribute is an SVG attribute.
pub fn is_none(&self) -> bool
[src]
pub fn is_inherit(&self) -> bool
[src]
pub fn is_current_color(&self) -> bool
[src]
pub fn is_aspect_ratio(&self) -> bool
[src]
pub fn is_color(&self) -> bool
[src]
pub fn is_length(&self) -> bool
[src]
pub fn is_length_list(&self) -> bool
[src]
pub fn is_link(&self) -> bool
[src]
pub fn is_func_link(&self) -> bool
[src]
pub fn is_paint(&self) -> bool
[src]
pub fn is_number(&self) -> bool
[src]
pub fn is_number_list(&self) -> bool
[src]
pub fn is_path(&self) -> bool
[src]
pub fn is_points(&self) -> bool
[src]
pub fn is_string(&self) -> bool
[src]
pub fn is_transform(&self) -> bool
[src]
pub fn is_viewbox(&self) -> bool
[src]
pub fn is_link_container(&self) -> bool
[src]
Trait Implementations
impl AttributeType for Attribute
[src]
fn is_presentation(&self) -> bool
[src]
fn is_inheritable(&self) -> bool
[src]
fn is_animation_event(&self) -> bool
[src]
fn is_graphical_event(&self) -> bool
[src]
fn is_document_event(&self) -> bool
[src]
fn is_conditional_processing(&self) -> bool
[src]
fn is_core(&self) -> bool
[src]
fn is_fill(&self) -> bool
[src]
fn is_stroke(&self) -> bool
[src]
impl Clone for Attribute
[src]
fn clone(&self) -> Attribute
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, N, V> From<(N, V)> for Attribute where
AttributeQNameRef<'a>: From<N>,
AttributeValue: From<V>,
[src]
AttributeQNameRef<'a>: From<N>,
AttributeValue: From<V>,
impl<'a, N> From<(N, Node<NodeData>)> for Attribute where
AttributeQNameRef<'a>: From<N>,
N: Clone,
[src]
AttributeQNameRef<'a>: From<N>,
N: Clone,
impl<'a, N> From<(N, (Node<NodeData>, Option<PaintFallback>))> for Attribute where
AttributeQNameRef<'a>: From<N>,
N: Clone,
[src]
AttributeQNameRef<'a>: From<N>,
N: Clone,
impl PartialEq<Attribute> for Attribute
[src]
impl Display for Attribute
[src]
impl Debug for Attribute
[src]
Auto Trait Implementations
impl !Send for Attribute
impl Unpin for Attribute
impl !Sync for Attribute
impl !UnwindSafe for Attribute
impl !RefUnwindSafe for Attribute
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,