pub struct ExpandOutcome {
pub content: String,
pub total_bytes: usize,
pub range: Option<(usize, usize)>,
}Expand description
The result of a successful expand_reduction call.
Fields§
§content: StringThe resolved (optionally range-sliced) original content — exactly what was asked for, byte for byte. This never truncates further on its own; see the module doc comment for why an oversized ask is left to the ordinary A7 pass instead, once this content lands in history.
total_bytes: usizeTotal byte length of the FULL original content behind the requested
id, before any byte_range slicing — lets a caller judge whether (and
how) to ask for a narrower range next time.
range: Option<(usize, usize)>The effective [start, end) byte range content was sliced to, when
the caller asked for one (clamped to total_bytes and to char
boundaries). None for a whole-content expand.
Trait Implementations§
Source§impl Clone for ExpandOutcome
impl Clone for ExpandOutcome
Source§fn clone(&self) -> ExpandOutcome
fn clone(&self) -> ExpandOutcome
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 ExpandOutcome
impl Debug for ExpandOutcome
impl Eq for ExpandOutcome
Source§impl PartialEq for ExpandOutcome
impl PartialEq for ExpandOutcome
impl StructuralPartialEq for ExpandOutcome
Auto Trait Implementations§
impl Freeze for ExpandOutcome
impl RefUnwindSafe for ExpandOutcome
impl Send for ExpandOutcome
impl Sync for ExpandOutcome
impl Unpin for ExpandOutcome
impl UnsafeUnpin for ExpandOutcome
impl UnwindSafe for ExpandOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.