pub struct PreparedInputIdentity { /* private fields */ }Expand description
Exact payload-free identity of an ordered prepared model input.
Implementations§
Source§impl PreparedInputIdentity
impl PreparedInputIdentity
Sourcepub fn new(parts: Vec<InputPartDescriptor>) -> Result<Self, PreparedInputError>
pub fn new(parts: Vec<InputPartDescriptor>) -> Result<Self, PreparedInputError>
Validates a non-empty ordered set of input-part descriptors.
Sourcepub fn parts(&self) -> &[InputPartDescriptor]
pub fn parts(&self) -> &[InputPartDescriptor]
Ordered input-part descriptors.
Sourcepub fn encode_words(&self) -> Result<Vec<u32>, PreparedInputError>
pub fn encode_words(&self) -> Result<Vec<u32>, PreparedInputError>
Encodes the identity for backend-independent rank agreement.
Sourcepub fn decode_words(words: &[u32]) -> Result<Self, PreparedInputError>
pub fn decode_words(words: &[u32]) -> Result<Self, PreparedInputError>
Decodes and validates a rank-agreement descriptor.
Trait Implementations§
Source§impl Clone for PreparedInputIdentity
impl Clone for PreparedInputIdentity
Source§fn clone(&self) -> PreparedInputIdentity
fn clone(&self) -> PreparedInputIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreparedInputIdentity
impl Debug for PreparedInputIdentity
Source§impl<'de> Deserialize<'de> for PreparedInputIdentity
impl<'de> Deserialize<'de> for PreparedInputIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PreparedInputIdentity
Source§impl PartialEq for PreparedInputIdentity
impl PartialEq for PreparedInputIdentity
Source§impl Serialize for PreparedInputIdentity
impl Serialize for PreparedInputIdentity
impl StructuralPartialEq for PreparedInputIdentity
Auto Trait Implementations§
impl Freeze for PreparedInputIdentity
impl RefUnwindSafe for PreparedInputIdentity
impl Send for PreparedInputIdentity
impl Sync for PreparedInputIdentity
impl Unpin for PreparedInputIdentity
impl UnsafeUnpin for PreparedInputIdentity
impl UnwindSafe for PreparedInputIdentity
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