Enum sdc::point::TargetType [] [src]

pub enum TargetType {
    CenterOfGravity,
    Parabola,
    Gaussian,
    Peak,
}

How the point was derived from a waveform.

Variants

Methods

impl TargetType
[src]

Returns this target type as a u8.

Examples

use sdc::point::TargetType;
assert_eq!(0, TargetType::CenterOfGravity.as_u8());
assert_eq!(1, TargetType::Parabola.as_u8());
assert_eq!(2, TargetType::Gaussian.as_u8());

Returns the target type for this u8.

Examples

use sdc::point::TargetType;
assert_eq!(TargetType::Peak, TargetType::from_u8(3).unwrap());
assert!(TargetType::from_u8(10).is_err());

Trait Implementations

impl Clone for TargetType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TargetType
[src]

impl Debug for TargetType
[src]

Formats the value using the given formatter.

impl PartialEq for TargetType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for TargetType
[src]

Returns the "default value" for a type. Read more