pub struct PluginParameters { /* private fields */ }Expand description
Plugin parameters container
Implementations§
Source§impl PluginParameters
impl PluginParameters
Sourcepub fn set<T: Into<ParameterValue>>(
&mut self,
name: &str,
value: T,
) -> &mut Self
pub fn set<T: Into<ParameterValue>>( &mut self, name: &str, value: T, ) -> &mut Self
Set a parameter
Sourcepub fn get(&self, name: &str) -> Option<&ParameterValue>
pub fn get(&self, name: &str) -> Option<&ParameterValue>
Get a parameter
Sourcepub fn all(&self) -> &HashMap<String, ParameterValue>
pub fn all(&self) -> &HashMap<String, ParameterValue>
Get all parameters
Sourcepub fn merge(&mut self, other: &PluginParameters)
pub fn merge(&mut self, other: &PluginParameters)
Merge with another parameter set
Trait Implementations§
Source§impl Clone for PluginParameters
impl Clone for PluginParameters
Source§fn clone(&self) -> PluginParameters
fn clone(&self) -> PluginParameters
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 PluginParameters
impl Debug for PluginParameters
Source§impl Default for PluginParameters
impl Default for PluginParameters
Source§impl PartialEq for PluginParameters
impl PartialEq for PluginParameters
impl StructuralPartialEq for PluginParameters
Auto Trait Implementations§
impl Freeze for PluginParameters
impl RefUnwindSafe for PluginParameters
impl Send for PluginParameters
impl Sync for PluginParameters
impl Unpin for PluginParameters
impl UnsafeUnpin for PluginParameters
impl UnwindSafe for PluginParameters
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more