pub struct ConvertSchema<B, S>(/* private fields */);Expand description
Block that implements Schematic in schema S for block B.
Implementations§
Source§impl<B, S> ConvertSchema<B, S>
impl<B, S> ConvertSchema<B, S>
Sourcepub fn new(block: B) -> Self
pub fn new(block: B) -> Self
Creates a new ConvertSchema.
Trait Implementations§
Source§impl<B, S> Clone for ConvertSchema<B, S>
impl<B, S> Clone for ConvertSchema<B, S>
Source§impl<B, S> Debug for ConvertSchema<B, S>where
B: Debug,
impl<B, S> Debug for ConvertSchema<B, S>where
B: Debug,
Source§impl<B, S> Hash for ConvertSchema<B, S>where
B: Hash,
impl<B, S> Hash for ConvertSchema<B, S>where
B: Hash,
Source§impl<B, S> PartialEq for ConvertSchema<B, S>where
B: PartialEq,
impl<B, S> PartialEq for ConvertSchema<B, S>where
B: PartialEq,
Source§impl<B: Schematic, S: FromSchema<B::Schema>> Schematic for ConvertSchema<B, S>
impl<B: Schematic, S: FromSchema<B::Schema>> Schematic for ConvertSchema<B, S>
Source§type NestedData = <<B as Schematic>::NestedData as HasNestedView>::NestedView
type NestedData = <<B as Schematic>::NestedData as HasNestedView>::NestedView
Extra schematic data to be stored with the block’s generated cell. Read more
Source§fn schematic(
&self,
io: &IoNodeBundle<Self>,
cell: &mut CellBuilder<<Self as Schematic>::Schema>,
) -> Result<Self::NestedData>
fn schematic( &self, io: &IoNodeBundle<Self>, cell: &mut CellBuilder<<Self as Schematic>::Schema>, ) -> Result<Self::NestedData>
Generates the block’s schematic.
impl<B, S> Eq for ConvertSchema<B, S>where
B: Eq,
Auto Trait Implementations§
impl<B, S> Freeze for ConvertSchema<B, S>
impl<B, S> RefUnwindSafe for ConvertSchema<B, S>where
S: RefUnwindSafe,
B: RefUnwindSafe,
impl<B, S> Send for ConvertSchema<B, S>
impl<B, S> Sync for ConvertSchema<B, S>
impl<B, S> Unpin for ConvertSchema<B, S>where
S: Unpin,
impl<B, S> UnwindSafe for ConvertSchema<B, S>where
B: RefUnwindSafe,
S: 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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request