pub struct ResourceWorkShape { /* private fields */ }Expand description
Typed shape evidence shared by scoped admission and provider formula evaluation. The aggregate dimensions and fingerprint are core-derived.
Implementations§
Source§impl ResourceWorkShape
impl ResourceWorkShape
pub fn from_token_spans( token_spans: Vec<TokenSpanWork>, ) -> Result<Self, VNextError>
pub fn single(token_span: TokenSpanWork) -> Result<Self, VNextError>
pub const fn immediate_sequences(&self) -> u32
pub const fn immediate_tokens(&self) -> u64
pub const fn immediate_pages(&self) -> u64
pub const fn fit_sequences(&self) -> u32
pub const fn fit_tokens(&self) -> u64
pub const fn fit_pages(&self) -> u64
pub fn fingerprint(&self) -> &str
Trait Implementations§
Source§impl Clone for ResourceWorkShape
impl Clone for ResourceWorkShape
Source§fn clone(&self) -> ResourceWorkShape
fn clone(&self) -> ResourceWorkShape
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 ResourceWorkShape
impl Debug for ResourceWorkShape
impl Eq for ResourceWorkShape
Source§impl PartialEq for ResourceWorkShape
impl PartialEq for ResourceWorkShape
Source§impl Serialize for ResourceWorkShape
impl Serialize for ResourceWorkShape
impl StructuralPartialEq for ResourceWorkShape
Auto Trait Implementations§
impl Freeze for ResourceWorkShape
impl RefUnwindSafe for ResourceWorkShape
impl Send for ResourceWorkShape
impl Sync for ResourceWorkShape
impl Unpin for ResourceWorkShape
impl UnsafeUnpin for ResourceWorkShape
impl UnwindSafe for ResourceWorkShape
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