[−][src]Enum svgdom::QName
Qualified name.
Variants
Id(T)
For an SVG name.
Name(String)
For an unknown name.
Methods
impl<T: SvgId> QName<T>
[src]
pub fn as_ref(&self) -> QNameRef<T>
[src]
Returns QName
as QNameRef
.
pub fn has_id(&self, id: T) -> bool
[src]
Checks that this name has specified ID.
Trait Implementations
impl WriteBuffer for QName<AttributeId>
[src]
fn write_buf_opt(&self, _opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
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]
Self: Sized,
Returns an object that implements fmt::Display
using provided write options.
impl WriteBuffer for QName<ElementId>
[src]
fn write_buf_opt(&self, _opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
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]
Self: Sized,
Returns an object that implements fmt::Display
using provided write options.
impl<T: Clone + SvgId> Clone for QName<T>
[src]
fn clone(&self) -> QName<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: PartialEq + SvgId> PartialEq<QName<T>> for QName<T>
[src]
impl<'a, T: SvgId> From<QNameRef<'a, T>> for QName<T>
[src]
impl<T: Debug + SvgId> Debug for QName<T>
[src]
impl Display for QName<AttributeId>
[src]
impl Display for QName<ElementId>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,