pub struct SchematicOption {
pub name: String,
pub value: SchematicOptionValue,
}Fields§
§name: String§value: SchematicOptionValueImplementations§
Source§impl SchematicOption
impl SchematicOption
pub fn new( name: impl Into<String>, value: impl Into<SchematicOptionValue>, ) -> Self
pub fn normalized_name(&self) -> String
pub fn to_command_string(&self) -> String
Trait Implementations§
Source§impl Clone for SchematicOption
impl Clone for SchematicOption
Source§fn clone(&self) -> SchematicOption
fn clone(&self) -> SchematicOption
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 SchematicOption
impl Debug for SchematicOption
Source§impl PartialEq for SchematicOption
impl PartialEq for SchematicOption
Source§fn eq(&self, other: &SchematicOption) -> bool
fn eq(&self, other: &SchematicOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SchematicOption
impl StructuralPartialEq for SchematicOption
Auto Trait Implementations§
impl Freeze for SchematicOption
impl RefUnwindSafe for SchematicOption
impl Send for SchematicOption
impl Sync for SchematicOption
impl Unpin for SchematicOption
impl UnsafeUnpin for SchematicOption
impl UnwindSafe for SchematicOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.