pub struct ByteProgress { /* private fields */ }Expand description
Typed byte progress used by indexing and other document-local background work.
Implementations§
Source§impl ByteProgress
impl ByteProgress
Sourcepub const fn new(completed_bytes: usize, total_bytes: usize) -> Self
pub const fn new(completed_bytes: usize, total_bytes: usize) -> Self
Creates a byte progress value.
Sourcepub const fn completed_bytes(self) -> usize
pub const fn completed_bytes(self) -> usize
Returns the completed byte count.
Sourcepub const fn total_bytes(self) -> usize
pub const fn total_bytes(self) -> usize
Returns the total byte count.
Trait Implementations§
Source§impl Clone for ByteProgress
impl Clone for ByteProgress
Source§fn clone(&self) -> ByteProgress
fn clone(&self) -> ByteProgress
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 ByteProgress
impl Debug for ByteProgress
Source§impl Default for ByteProgress
impl Default for ByteProgress
Source§fn default() -> ByteProgress
fn default() -> ByteProgress
Returns the “default value” for a type. Read more
Source§impl PartialEq for ByteProgress
impl PartialEq for ByteProgress
impl Copy for ByteProgress
impl Eq for ByteProgress
impl StructuralPartialEq for ByteProgress
Auto Trait Implementations§
impl Freeze for ByteProgress
impl RefUnwindSafe for ByteProgress
impl Send for ByteProgress
impl Sync for ByteProgress
impl Unpin for ByteProgress
impl UnsafeUnpin for ByteProgress
impl UnwindSafe for ByteProgress
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