Enum svgdom::QName [−][src]
Qualified name.
Variants
Id(T)
For an SVG name.
Name(String)
For an unknown name.
Methods
impl<T: SvgId> QName<T>
[src]
impl<T: SvgId> QName<T>
pub fn as_ref(&self) -> QNameRef<T>
[src]
pub fn as_ref(&self) -> QNameRef<T>
Returns QName
as QNameRef
.
pub fn has_id(&self, id: T) -> bool
[src]
pub fn has_id(&self, id: T) -> bool
Checks that this name has specified ID.
Trait Implementations
impl<T: Clone + SvgId> Clone for QName<T>
[src]
impl<T: Clone + SvgId> Clone for QName<T>
fn clone(&self) -> QName<T>
[src]
fn clone(&self) -> QName<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: PartialEq + SvgId> PartialEq for QName<T>
[src]
impl<T: PartialEq + SvgId> PartialEq for QName<T>
fn eq(&self, other: &QName<T>) -> bool
[src]
fn eq(&self, other: &QName<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &QName<T>) -> bool
[src]
fn ne(&self, other: &QName<T>) -> bool
This method tests for !=
.
impl<T: Debug + SvgId> Debug for QName<T>
[src]
impl<T: Debug + SvgId> Debug for QName<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl WriteBuffer for QName<AttributeId>
[src]
impl WriteBuffer for QName<AttributeId>
fn write_buf_opt(&self, _opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf_opt(&self, _opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using specified WriteOptions
.
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using default WriteOptions
.
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
Self: Sized,
[src]
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
Self: Sized,
Returns an object that implements fmt::Display
using provided write options.
impl WriteBuffer for QName<ElementId>
[src]
impl WriteBuffer for QName<ElementId>
fn write_buf_opt(&self, _opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf_opt(&self, _opt: &WriteOptions, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using specified WriteOptions
.
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
Writes data to the Vec<u8>
buffer using default WriteOptions
.
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
Self: Sized,
[src]
fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
Self: Sized,
Returns an object that implements fmt::Display
using provided write options.
impl Display for QName<AttributeId>
[src]
impl Display for QName<AttributeId>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for QName<ElementId>
[src]
impl Display for QName<ElementId>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, T: SvgId> From<QNameRef<'a, T>> for QName<T>
[src]
impl<'a, T: SvgId> From<QNameRef<'a, T>> for QName<T>