pub struct ReplicatedTextPhysicalSource { /* private fields */ }Expand description
Exact admitted source and executable constraints for one logical parameter.
Implementations§
Source§impl ReplicatedTextPhysicalSource
impl ReplicatedTextPhysicalSource
Sourcepub fn new(
catalog_key: impl Into<String>,
tensor: impl Into<String>,
shard: impl Into<PathBuf>,
output: impl Into<String>,
source_encoding: SourceTensorEncoding,
encoded_byte_len: u64,
) -> Result<Self, ReplicatedTextContractError>
pub fn new( catalog_key: impl Into<String>, tensor: impl Into<String>, shard: impl Into<PathBuf>, output: impl Into<String>, source_encoding: SourceTensorEncoding, encoded_byte_len: u64, ) -> Result<Self, ReplicatedTextContractError>
Records one exact physical tensor, admitted shard, and selected output.
Sourcepub fn catalog_key(&self) -> &str
pub fn catalog_key(&self) -> &str
Logical key selecting this exact output from the admitted catalog.
Sourcepub const fn source_encoding(&self) -> &SourceTensorEncoding
pub const fn source_encoding(&self) -> &SourceTensorEncoding
Exact physical container encoding for this catalog output.
Sourcepub const fn encoded_byte_len(&self) -> u64
pub const fn encoded_byte_len(&self) -> u64
Encoded bytes selected for this catalog output.
Trait Implementations§
Source§impl Clone for ReplicatedTextPhysicalSource
impl Clone for ReplicatedTextPhysicalSource
Source§fn clone(&self) -> ReplicatedTextPhysicalSource
fn clone(&self) -> ReplicatedTextPhysicalSource
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 ReplicatedTextPhysicalSource
impl Debug for ReplicatedTextPhysicalSource
impl Eq for ReplicatedTextPhysicalSource
impl StructuralPartialEq for ReplicatedTextPhysicalSource
Auto Trait Implementations§
impl Freeze for ReplicatedTextPhysicalSource
impl RefUnwindSafe for ReplicatedTextPhysicalSource
impl Send for ReplicatedTextPhysicalSource
impl Sync for ReplicatedTextPhysicalSource
impl Unpin for ReplicatedTextPhysicalSource
impl UnsafeUnpin for ReplicatedTextPhysicalSource
impl UnwindSafe for ReplicatedTextPhysicalSource
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