pub struct WindowsCallbackRange { /* private fields */ }Expand description
Owned CFAPI callback range preserving the native CF_EOF distinction.
Implementations§
Source§impl WindowsCallbackRange
impl WindowsCallbackRange
Sourcepub fn exact(offset: u64, length: u64) -> Result<Self>
pub fn exact(offset: u64, length: u64) -> Result<Self>
Creates one exact non-empty range and rejects end overflow.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn to_end(offset: u64) -> Result<Self>
pub fn to_end(offset: u64) -> Result<Self>
Creates a range extending from offset through the current end of file.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn from_cfapi(offset: i64, length: i64) -> Result<Self>
pub fn from_cfapi(offset: i64, length: i64) -> Result<Self>
Converts the signed CFAPI offset/length pair into an owned range.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub const fn length(self) -> WindowsCallbackRangeLength
pub const fn length(self) -> WindowsCallbackRangeLength
Returns the exact native length semantics.
Sourcepub const fn end_exclusive(self) -> Option<u64>
pub const fn end_exclusive(self) -> Option<u64>
Returns the exclusive end for an exact range, or None for ToEnd.
Trait Implementations§
Source§impl Clone for WindowsCallbackRange
impl Clone for WindowsCallbackRange
Source§fn clone(&self) -> WindowsCallbackRange
fn clone(&self) -> WindowsCallbackRange
Returns a duplicate of the value. Read more
1.0.0 · 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 WindowsCallbackRange
impl Debug for WindowsCallbackRange
Source§impl Hash for WindowsCallbackRange
impl Hash for WindowsCallbackRange
Source§impl PartialEq for WindowsCallbackRange
impl PartialEq for WindowsCallbackRange
impl Copy for WindowsCallbackRange
impl Eq for WindowsCallbackRange
impl StructuralPartialEq for WindowsCallbackRange
Auto Trait Implementations§
impl Freeze for WindowsCallbackRange
impl RefUnwindSafe for WindowsCallbackRange
impl Send for WindowsCallbackRange
impl Sync for WindowsCallbackRange
impl Unpin for WindowsCallbackRange
impl UnwindSafe for WindowsCallbackRange
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