pub struct Plugin { /* private fields */ }
Implementations§
Source§impl Plugin
impl Plugin
pub fn new(handle: NonNull<VSPlugin>, api: Api) -> Self
pub fn as_ptr(&self) -> *const VSPlugin
pub fn name(&self) -> &CStr
pub fn id(&self) -> &CStr
pub fn namespace(&self) -> &CStr
pub fn invoke(&self, name: &CStr, args: impl Borrow<Map>) -> Map
pub fn functions(&self) -> Functions<'_> ⓘ
pub fn get_function_by_name(&self, name: &CStr) -> Option<PluginFunction>
pub fn path(&self) -> &CStr
pub fn version(&self) -> i32
Trait Implementations§
impl Eq for Plugin
impl StructuralPartialEq for Plugin
Auto Trait Implementations§
impl Freeze for Plugin
impl RefUnwindSafe for Plugin
impl !Send for Plugin
impl !Sync for Plugin
impl Unpin for Plugin
impl UnwindSafe for Plugin
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