pub struct NameOr<T>(pub Mapping<T>);Expand description
The value of a parameter that is a name or a mapping of the parameters T (a
constellation 16-QAM or {kind: qam, m: 16}, the pilots none or {pattern: comb, …}), kept as given until the block reads it (NameOr::get).
Tuple Fields§
§0: Mapping<T>Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for NameOr<T>
impl<'de, T> Deserialize<'de> for NameOr<T>
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Params> ParamType for NameOr<T>
impl<T: Params> ParamType for NameOr<T>
impl<T: PartialEq> StructuralPartialEq for NameOr<T>
Auto Trait Implementations§
impl<T> Forget for NameOr<T>
impl<T> Freeze for NameOr<T>
impl<T> RefUnwindSafe for NameOr<T>where
Mapping<T>: RefUnwindSafe,
impl<T> Send for NameOr<T>
impl<T> Sync for NameOr<T>
impl<T> Unpin for NameOr<T>
impl<T> UnsafeUnpin for NameOr<T>where
Mapping<T>: UnsafeUnpin,
impl<T> UnwindSafe for NameOr<T>where
Mapping<T>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more