pub struct Signature {
pub inputs: &'static [TypedParam],
pub outputs: &'static [TypedParam],
pub attrs: &'static [AttrSchema],
pub bytes_extraction: bool,
}Expand description
Operation signature contract.
Fields§
§inputs: &'static [TypedParam]Input parameters.
outputs: &'static [TypedParam]Output parameters.
attrs: &'static [AttrSchema]Attribute parameters.
bytes_extraction: boolTrue when this op may read DataType::Bytes buffers.
Implementations§
Source§impl Signature
impl Signature
Sourcepub const fn bytes_extractor(
inputs: &'static [TypedParam],
outputs: &'static [TypedParam],
attrs: &'static [AttrSchema],
) -> Self
pub const fn bytes_extractor( inputs: &'static [TypedParam], outputs: &'static [TypedParam], attrs: &'static [AttrSchema], ) -> Self
Construct a signature for an op that performs bytes extraction.
Trait Implementations§
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.