Struct rustsynth::plugin::Plugin

source ·
pub struct Plugin<'core> { /* private fields */ }
Expand description

A VapourSynth plugin.

There are a few of these built into the core, and therefore available at all times: the basic filters (identifier com.vapoursynth.std, namespace std), the resizers (identifier com.vapoursynth.resize, namespace resize), and the Avisynth compatibility module, if running in Windows (identifier com.vapoursynth.avisynth, namespace avs).

Implementations§

source§

impl<'core> Plugin<'core>

source

pub fn path(&self) -> Option<&'core str>

The path to the shared object of the plugin or None if is a internal VapourSynth plugin

source

pub fn id(&self) -> Option<&'core str>

The id associated with the plugin or None if it has no id set

source

pub fn namespace(&self) -> Option<&'core str>

The namespace associated with the plugin or None if it has no namespace set

source

pub fn name(&self) -> Option<&'core str>

The name associated with the plugin or None if it has no name set

source

pub fn version(&self) -> i32

source

pub fn function(&self, name: &str) -> Option<PluginFunction<'core>>

Get function struct associated with the name

returns None if no function is found

source

pub fn functions(&'core self) -> PluginFunctions<'_>

Creates an iterator over all the functions of the plugin in an arbitrary order

source

pub fn invoke(&self, name: &str, args: &Map<'core>) -> OwnedMap<'core>

Invokes the plugin function with the name provided

Panics

Will panic if there is no function with that name

Trait Implementations§

source§

impl<'core> Clone for Plugin<'core>

source§

fn clone(&self) -> Plugin<'core>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'core> Debug for Plugin<'core>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'core> Copy for Plugin<'core>

source§

impl<'core> Send for Plugin<'core>

source§

impl<'core> Sync for Plugin<'core>

Auto Trait Implementations§

§

impl<'core> RefUnwindSafe for Plugin<'core>

§

impl<'core> Unpin for Plugin<'core>

§

impl<'core> UnwindSafe for Plugin<'core>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.