Enum svgdom::NameRef
[−]
[src]
pub enum NameRef<'a, T: SvgId> { Id(T), Name(&'a str), }
A reference-like container for a Name
object.
We need this to prevent String
copy.
Variants
Id(T)
For an SVG name.
Name(&'a str)
For an unknown name.
Trait Implementations
impl<'a, T: Clone + SvgId> Clone for NameRef<'a, T>
[src]
fn clone(&self) -> NameRef<'a, T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, T: Copy + SvgId> Copy for NameRef<'a, T>
[src]
impl<'a, T: PartialEq + SvgId> PartialEq for NameRef<'a, T>
[src]
fn eq(&self, __arg_0: &NameRef<'a, T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NameRef<'a, T>) -> bool
[src]
This method tests for !=
.