#[non_exhaustive]pub enum ConstellationKind {
Pam,
Qam,
Psk,
Ook,
Custom,
}Expand description
The family of a constellation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pam
Pulse amplitude modulation (real).
Qam
Square quadrature amplitude modulation.
Psk
Phase shift keying.
Ook
On-off keying {0, 1} (real).
Custom
Points given by the user (Constellation::from_points).
Implementations§
Source§impl ConstellationKind
impl ConstellationKind
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The name of the family: "pam", "qam", "psk", "ook" or "custom" (the
names that ConstellationKind::from_str reads, but the last).
§Examples
use comnum_mapping::constellation::ConstellationKind;
let k: ConstellationKind = "QAM".parse()?;
assert_eq!(k.name(), "qam");Trait Implementations§
Source§impl Clone for ConstellationKind
impl Clone for ConstellationKind
impl Copy for ConstellationKind
Source§impl Debug for ConstellationKind
impl Debug for ConstellationKind
impl Eq for ConstellationKind
Source§impl FromStr for ConstellationKind
impl FromStr for ConstellationKind
Source§impl Hash for ConstellationKind
impl Hash for ConstellationKind
Source§impl PartialEq for ConstellationKind
impl PartialEq for ConstellationKind
impl StructuralPartialEq for ConstellationKind
Auto Trait Implementations§
impl Freeze for ConstellationKind
impl RefUnwindSafe for ConstellationKind
impl Send for ConstellationKind
impl Sync for ConstellationKind
impl Unpin for ConstellationKind
impl UnsafeUnpin for ConstellationKind
impl UnwindSafe for ConstellationKind
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