skia_safe::resources

Type Alias NativeResourceProvider

Source
pub type NativeResourceProvider = RCHandle<RustResourceProvider>;

Aliased Type§

struct NativeResourceProvider(/* private fields */);

Trait Implementations§

Source§

impl From<Box<dyn ResourceProvider>> for NativeResourceProvider

Source§

fn from(resource_provider: Box<dyn ResourceProvider>) -> Self

Converts to this type from the input type.
Source§

impl From<RCHandle<SkFontMgr>> for NativeResourceProvider

Support a direct conversion from a FontMgr into a local native resource provider.

Source§

fn from(font_mgr: FontMgr) -> Self

Converts to this type from the input type.
Source§

impl<T: ResourceProvider + 'static> From<T> for NativeResourceProvider

Source§

fn from(value: T) -> Self

Converts to this type from the input type.