pub struct BlockEntry {
pub desc: BlockDesc,
pub make: Option<fn() -> Box<dyn BlockProps<Reader = <BaseInput<Receiver<Value>, Sender<Value>> as InputProps>::Reader, Writer = <BaseInput<Receiver<Value>, Sender<Value>> as InputProps>::Writer>>>,
}Expand description
Register a block in the registry
Fields§
§desc: BlockDesc§make: Option<fn() -> Box<dyn BlockProps<Reader = <BaseInput<Receiver<Value>, Sender<Value>> as InputProps>::Reader, Writer = <BaseInput<Receiver<Value>, Sender<Value>> as InputProps>::Writer>>>Trait Implementations§
Source§impl Clone for BlockEntry
impl Clone for BlockEntry
Source§fn clone(&self) -> BlockEntry
fn clone(&self) -> BlockEntry
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 moreAuto Trait Implementations§
impl Freeze for BlockEntry
impl RefUnwindSafe for BlockEntry
impl Send for BlockEntry
impl Sync for BlockEntry
impl Unpin for BlockEntry
impl UnwindSafe for BlockEntry
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