pub struct Mapping<T> {
pub value: Value,
/* private fields */
}Expand description
The value of a parameter that is a mapping of the parameters T (declared with
block_params!), kept as given until the block parses it
(Mapping::parse; the fibre blocks merge it over the fibre of the specification
first): its keys are documented with those of the block.
Fields§
§value: ValueThe mapping as given.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Mapping<T>
impl<'de, T> Deserialize<'de> for Mapping<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 Mapping<T>
impl<T: Params> ParamType for Mapping<T>
impl<T: PartialEq> StructuralPartialEq for Mapping<T>
Auto Trait Implementations§
impl<T> Freeze for Mapping<T>
impl<T> RefUnwindSafe for Mapping<T>
impl<T> Send for Mapping<T>
impl<T> Sync for Mapping<T>
impl<T> Unpin for Mapping<T>
impl<T> UnsafeUnpin for Mapping<T>
impl<T> UnwindSafe for Mapping<T>
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