Enum pdf::primitive::StreamInner
source · pub enum StreamInner {
InFile {
id: PlainRef,
file_range: Range<usize>,
},
Pending {
data: Arc<[u8]>,
},
}
Variants§
Trait Implementations§
source§impl Clone for StreamInner
impl Clone for StreamInner
source§fn clone(&self) -> StreamInner
fn clone(&self) -> StreamInner
Returns a copy 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 DataSize for StreamInner
impl DataSize for StreamInner
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true
, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC
is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
source§impl Debug for StreamInner
impl Debug for StreamInner
source§impl PartialEq for StreamInner
impl PartialEq for StreamInner
source§fn eq(&self, other: &StreamInner) -> bool
fn eq(&self, other: &StreamInner) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamInner
Auto Trait Implementations§
impl RefUnwindSafe for StreamInner
impl Send for StreamInner
impl Sync for StreamInner
impl Unpin for StreamInner
impl UnwindSafe for StreamInner
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