Struct ScriptParameter
pub struct ScriptParameter { /* private fields */ }Expand description
One validated --set name=value script parameter.
Implementations§
§impl ScriptParameter
impl ScriptParameter
pub fn parse_set(argument: &str) -> Result<ScriptParameter, PixelFlowError>
pub fn parse_set(argument: &str) -> Result<ScriptParameter, PixelFlowError>
Parses one --set name=value argument.
pub const fn value(&self) -> &ScriptValue
pub const fn value(&self) -> &ScriptValue
Returns parameter value.
Trait Implementations§
§impl Clone for ScriptParameter
impl Clone for ScriptParameter
§fn clone(&self) -> ScriptParameter
fn clone(&self) -> ScriptParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ScriptParameter
impl Debug for ScriptParameter
§impl PartialEq for ScriptParameter
impl PartialEq for ScriptParameter
impl StructuralPartialEq for ScriptParameter
Auto Trait Implementations§
impl Freeze for ScriptParameter
impl RefUnwindSafe for ScriptParameter
impl Send for ScriptParameter
impl Sync for ScriptParameter
impl Unpin for ScriptParameter
impl UnsafeUnpin for ScriptParameter
impl UnwindSafe for ScriptParameter
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