pub struct OwnedIconData {
pub name: String,
pub vertices: Vec<(f32, f32)>,
pub indices: Vec<u32>,
pub viewbox_width: f32,
pub viewbox_height: f32,
}Expand description
Icon data that owns its buffers.
Runtime counterpart to IconData. Use this when icon geometry is
produced at runtime (e.g. from [runtime::parse_svg]).
Fields§
§name: StringIcon name
vertices: Vec<(f32, f32)>Vertex positions as (x, y) tuples
indices: Vec<u32>Triangle indices
viewbox_width: f32Original viewbox width
viewbox_height: f32Original viewbox height
Implementations§
Trait Implementations§
Source§impl Clone for OwnedIconData
impl Clone for OwnedIconData
Source§fn clone(&self) -> OwnedIconData
fn clone(&self) -> OwnedIconData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OwnedIconData
impl RefUnwindSafe for OwnedIconData
impl Send for OwnedIconData
impl Sync for OwnedIconData
impl Unpin for OwnedIconData
impl UnsafeUnpin for OwnedIconData
impl UnwindSafe for OwnedIconData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more