pub struct SubChannelSet {
pub name: Option<Name>,
pub physical_from: f64,
pub physical_to: f64,
pub sub_physical_unit: Node,
pub dmx_profile: Option<Node>,
}Expand description
Defines a sub channel set of a ChannelFunction.
Corresponds to a <SubChannelSet> XML node.
Fields§
§name: Option<Name>The name of the sub channel set.
Corresponds to the Name XML attribute.
physical_from: f64Physical start value.
Corresponds to the PhysicalFrom XML attribute.
physical_to: f64Physical end value.
Corresponds to the PhysicalTo XML attribute.
sub_physical_unit: NodeLink to the sub physical unit.
Corresponds to the SubPhysicalUnit XML attribute.
dmx_profile: Option<Node>Optional link to the DMX profile.
Corresponds to the DMXProfile XML attribute.
Implementations§
Source§impl SubChannelSet
impl SubChannelSet
Sourcepub fn sub_physical_unit<'s>(
&self,
parent_fixture_type: &'s FixtureType,
) -> Option<&'s SubPhysicalUnit>
pub fn sub_physical_unit<'s>( &self, parent_fixture_type: &'s FixtureType, ) -> Option<&'s SubPhysicalUnit>
Looks up the SubPhysicalUnit linked by this sub channel set.
Sourcepub fn dmx_profile<'s>(
&self,
parent_fixture_type: &'s FixtureType,
) -> Option<&'s DmxProfile>
pub fn dmx_profile<'s>( &self, parent_fixture_type: &'s FixtureType, ) -> Option<&'s DmxProfile>
Looks up the DmxProfile linked by this sub channel set.
Sourcepub fn validate(
&self,
parent_fixture_type: &FixtureType,
result: &mut ValidationResult,
)
pub fn validate( &self, parent_fixture_type: &FixtureType, result: &mut ValidationResult, )
Performs validation checks on the object.
Trait Implementations§
Source§impl Clone for SubChannelSet
impl Clone for SubChannelSet
Source§fn clone(&self) -> SubChannelSet
fn clone(&self) -> SubChannelSet
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 SubChannelSet
impl Debug for SubChannelSet
Source§impl<'de> Deserialize<'de> for SubChannelSet
impl<'de> Deserialize<'de> for SubChannelSet
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 PartialEq for SubChannelSet
impl PartialEq for SubChannelSet
Source§impl Serialize for SubChannelSet
impl Serialize for SubChannelSet
impl StructuralPartialEq for SubChannelSet
Auto Trait Implementations§
impl Freeze for SubChannelSet
impl RefUnwindSafe for SubChannelSet
impl Send for SubChannelSet
impl Sync for SubChannelSet
impl Unpin for SubChannelSet
impl UnwindSafe for SubChannelSet
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