pub struct Handle { /* private fields */ }
Available on crate feature
pure
only.Expand description
A handle of Svg data.
Implementations
sourceimpl Handle
impl Handle
sourcepub fn from_path(path: impl Into<PathBuf>) -> Handle
Available on crate feature svg
only.
pub fn from_path(path: impl Into<PathBuf>) -> Handle
svg
only.Creates an SVG Handle
pointing to the vector image of the given
path.
sourcepub fn from_memory(bytes: impl Into<Vec<u8, Global>>) -> Handle
Available on crate feature svg
only.
pub fn from_memory(bytes: impl Into<Vec<u8, Global>>) -> Handle
svg
only.Creates an SVG Handle
from raw bytes containing either an SVG string
or gzip compressed data.
This is useful if you already have your SVG data in-memory, maybe because you downloaded or generated it procedurally.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more