pub struct ResolvedWeightComponentLayout { /* private fields */ }Expand description
Provider-visible physical identity for one component of a resolved weight. Source file names are intentionally excluded: source provenance belongs to the prepared family fingerprint, while providers need shape, role, and ABI.
Implementations§
Source§impl ResolvedWeightComponentLayout
impl ResolvedWeightComponentLayout
pub fn component_id(&self) -> &WeightId
pub const fn role(&self) -> WeightComponentRole
pub fn physical_dimensions(&self) -> &[u64]
pub fn encoding(&self) -> &WeightEncoding
pub fn physical_bytes(&self) -> Result<u64, VNextError>
pub fn physical_element_type(&self) -> ElementType
Trait Implementations§
Source§impl Clone for ResolvedWeightComponentLayout
impl Clone for ResolvedWeightComponentLayout
Source§fn clone(&self) -> ResolvedWeightComponentLayout
fn clone(&self) -> ResolvedWeightComponentLayout
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<'de> Deserialize<'de> for ResolvedWeightComponentLayout
impl<'de> Deserialize<'de> for ResolvedWeightComponentLayout
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 ResolvedWeightComponentLayout
impl StructuralPartialEq for ResolvedWeightComponentLayout
Auto Trait Implementations§
impl Freeze for ResolvedWeightComponentLayout
impl RefUnwindSafe for ResolvedWeightComponentLayout
impl Send for ResolvedWeightComponentLayout
impl Sync for ResolvedWeightComponentLayout
impl Unpin for ResolvedWeightComponentLayout
impl UnsafeUnpin for ResolvedWeightComponentLayout
impl UnwindSafe for ResolvedWeightComponentLayout
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