Enum sdf::file::Channel [] [src]

pub enum Channel {
    High,
    Low,
    Saturation,
    Reference,
}

Information from one detector or set of detectors.

Variants

High

The high channel.

Low

The low channel.

Saturation

The saturation channel.

Reference

The reference channel.

Methods

impl Channel

fn from_u32(n: u32) -> Result<Channel>

Returns the appropriate channel for the given u32.

Examples

use sdf::file::Channel;
assert_eq!(Channel::High, Channel::from_u32(0).unwrap());
assert_eq!(Channel::Low, Channel::from_u32(1).unwrap());
assert_eq!(Channel::Saturation, Channel::from_u32(2).unwrap());
assert_eq!(Channel::Reference, Channel::from_u32(3).unwrap());
assert!(Channel::from_u32(4).is_err());

Trait Implementations

impl Display for Channel

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Channel

fn eq(&self, __arg_0: &Channel) -> bool

fn ne(&self, __arg_0: &Channel) -> bool

impl Hash for Channel

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for Channel

impl Debug for Channel

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for Channel

impl Clone for Channel

fn clone(&self) -> Channel

fn clone_from(&mut self, source: &Self)