#[non_exhaustive]pub enum Partition {
Adjacent,
Interleaved,
Pseudorandom(u64),
}Expand description
How the subcarriers are split into the subblocks of Pts.
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.
Adjacent
Contiguous subblocks.
Interleaved
Subcarrier $i$ in subblock $i \bmod V$.
Pseudorandom(u64)
A balanced random assignment (seeded): the best PAPR reduction.
Implementations§
Source§impl Partition
impl Partition
Sourcepub fn from_name(name: &str, seed: u64) -> Result<Partition>
pub fn from_name(name: &str, seed: u64) -> Result<Partition>
The partition of a name: adjacent, interleaved or pseudorandom (drawn with
seed), case-insensitive.
§Errors
Error::Config for another name.
§Examples
use comnum_waveform::papr::Partition;
assert_eq!(Partition::from_name("pseudorandom", 3)?, Partition::Pseudorandom(3));
assert!(Partition::from_name("random", 3).is_err());Trait Implementations§
impl Copy for Partition
impl Eq for Partition
impl StructuralPartialEq for Partition
Auto Trait Implementations§
impl Forget for Partition
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnsafeUnpin for Partition
impl UnwindSafe for Partition
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