pub struct BlockInput {
pub shadow: bool,
pub value: InputValue,
}Expand description
The BlockInput struct wraps an InputValue.
Blocks contain a map of input names to BlockInputs.
Fields§
§shadow: boolIf the block is a shadow block.
value: InputValueThe input value, which can be a literal, broadcast, or nested block.
Implementations§
Source§impl BlockInput
impl BlockInput
Sourcepub fn new(
raw: RawBlockInput,
blocks: &HashMap<String, RawBlock>,
) -> Result<Self, DecodeError>
pub fn new( raw: RawBlockInput, blocks: &HashMap<String, RawBlock>, ) -> Result<Self, DecodeError>
Creates a new BlockInput from a RawBlockInput and the entire map of blocks to
un-flatten the structure.
Trait Implementations§
Source§impl Clone for BlockInput
impl Clone for BlockInput
Source§fn clone(&self) -> BlockInput
fn clone(&self) -> BlockInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockInput
impl Debug for BlockInput
Source§impl PartialEq for BlockInput
impl PartialEq for BlockInput
impl StructuralPartialEq for BlockInput
Auto Trait Implementations§
impl Freeze for BlockInput
impl RefUnwindSafe for BlockInput
impl Send for BlockInput
impl Sync for BlockInput
impl Unpin for BlockInput
impl UnwindSafe for BlockInput
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,
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