pub struct Encoding<P: Phase = Raw> {
pub channel: EncodingChannel,
pub channel_span: Span,
pub value: Expr<P>,
pub span: Span,
}Expand description
An encoding channel mapping in a plot declaration.
Example: x: for m: OpMode { @total_power[m] }
Fields§
§channel: EncodingChannel§channel_span: Span§value: Expr<P>§span: SpanTrait Implementations§
Source§impl FormatEquivalent for Encoding
impl FormatEquivalent for Encoding
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for Encoding<P>
impl<P> RefUnwindSafe for Encoding<P>
impl<P> Send for Encoding<P>
impl<P> Sync for Encoding<P>
impl<P> Unpin for Encoding<P>
impl<P> UnsafeUnpin for Encoding<P>
impl<P> UnwindSafe for Encoding<P>
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