pub struct ModeMasterNode {
pub node: Node,
pub from: DmxValue,
pub to: DmxValue,
}
Expand description
A link to a DmxChannel or ChannelFunction defining the mode master of a ChannelFunction.
Fields§
§node: Node
Link to a DmxChannel or a ChannelFunction.
Corresponds to the ModeMaster
XML attribute.
from: DmxValue
The lowest DMX value of the linked DMX channel or channel function to activate the current channel function.
Corresponds to the ModeFrom
XML attribute.
to: DmxValue
The highest DMX value of the linked DMX channel or channel function to activate the current function.
Corresponds to the ModeTo
XML attribute.
Implementations§
Source§impl ModeMasterNode
impl ModeMasterNode
Sourcepub fn mode_master<'s>(
&self,
parent_dmx_mode: &'s DmxMode,
) -> Option<ModeMaster<'s>>
pub fn mode_master<'s>( &self, parent_dmx_mode: &'s DmxMode, ) -> Option<ModeMaster<'s>>
Looks up the DmxChannel or ChannelFunction linked by this channel function.
Trait Implementations§
Source§impl Clone for ModeMasterNode
impl Clone for ModeMasterNode
Source§fn clone(&self) -> ModeMasterNode
fn clone(&self) -> ModeMasterNode
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 moreSource§impl Debug for ModeMasterNode
impl Debug for ModeMasterNode
Source§impl<'de> Deserialize<'de> for ModeMasterNode
impl<'de> Deserialize<'de> for ModeMasterNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ModeMasterNode
impl Hash for ModeMasterNode
Source§impl PartialEq for ModeMasterNode
impl PartialEq for ModeMasterNode
Source§impl Serialize for ModeMasterNode
impl Serialize for ModeMasterNode
impl Eq for ModeMasterNode
impl StructuralPartialEq for ModeMasterNode
Auto Trait Implementations§
impl Freeze for ModeMasterNode
impl RefUnwindSafe for ModeMasterNode
impl Send for ModeMasterNode
impl Sync for ModeMasterNode
impl Unpin for ModeMasterNode
impl UnwindSafe for ModeMasterNode
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.