pub struct VectorAsset {
pub id: VectorId,
pub size: Size,
pub svg: Arc<[u8]>,
pub tintable: bool,
}Expand description
A validated, resolution-independent SVG resource.
Fields§
§id: VectorId§size: Size§svg: Arc<[u8]>§tintable: boolTrait Implementations§
Source§impl Clone for VectorAsset
impl Clone for VectorAsset
Source§fn clone(&self) -> VectorAsset
fn clone(&self) -> VectorAsset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorAsset
impl Debug for VectorAsset
Source§impl PartialEq for VectorAsset
impl PartialEq for VectorAsset
impl StructuralPartialEq for VectorAsset
Auto Trait Implementations§
impl Freeze for VectorAsset
impl RefUnwindSafe for VectorAsset
impl Send for VectorAsset
impl Sync for VectorAsset
impl Unpin for VectorAsset
impl UnsafeUnpin for VectorAsset
impl UnwindSafe for VectorAsset
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