MCPcopy Index your code
hub / github.com/endbasic/endbasic / new

Method new

std/src/storage/mod.rs:93–95  ·  view source on GitHub ↗

Creates a new representation of disk space.

(bytes: u64, files: u64)

Source from the content-addressed store, hash-verified

91impl DiskSpace {
92 /// Creates a new representation of disk space.
93 pub fn new(bytes: u64, files: u64) -> Self {
94 Self { bytes, files }
95 }
96
97 /// Returns the amount of bytes in this disk space.
98 pub fn bytes(&self) -> u64 {

Callers

nothing calls this directly

Calls 4

DriveKeyClass · 0.85
charsMethod · 0.80
as_sliceMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected