Struct ttf_parser::svg::SvgDocumentsList
source · pub struct SvgDocumentsList<'a> { /* private fields */ }
Expand description
A list of SVG documents.
Implementations§
source§impl<'a> SvgDocumentsList<'a>
impl<'a> SvgDocumentsList<'a>
sourcepub fn get(&self, index: u16) -> Option<SvgDocument<'a>>
pub fn get(&self, index: u16) -> Option<SvgDocument<'a>>
Returns SVG document data at index.
index
is not a GlyphId. You should use find()
instead.
sourcepub fn find(&self, glyph_id: GlyphId) -> Option<SvgDocument<'a>>
pub fn find(&self, glyph_id: GlyphId) -> Option<SvgDocument<'a>>
Returns a SVG document data by glyph ID.
Trait Implementations§
source§impl<'a> Clone for SvgDocumentsList<'a>
impl<'a> Clone for SvgDocumentsList<'a>
source§fn clone(&self) -> SvgDocumentsList<'a>
fn clone(&self) -> SvgDocumentsList<'a>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SvgDocumentsList<'_>
impl Debug for SvgDocumentsList<'_>
source§impl<'a> IntoIterator for SvgDocumentsList<'a>
impl<'a> IntoIterator for SvgDocumentsList<'a>
impl<'a> Copy for SvgDocumentsList<'a>
Auto Trait Implementations§
impl<'a> Freeze for SvgDocumentsList<'a>
impl<'a> RefUnwindSafe for SvgDocumentsList<'a>
impl<'a> Send for SvgDocumentsList<'a>
impl<'a> Sync for SvgDocumentsList<'a>
impl<'a> Unpin for SvgDocumentsList<'a>
impl<'a> UnwindSafe for SvgDocumentsList<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)