Docs.rs
s2-common-0.37.0
s2-common 0.37.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
shikhar
github:s2-streamstore:dev
Dependencies
aegis ^0.9
normal
aes-gcm ^0.10
normal
axum ^0.8
normal
optional
base64ct ^1.8
normal
blake3 ^1.8
normal
bytes ^1.11
normal
clap ^4.6
normal
optional
compact_str ^0.9
normal
enumset ^1.1
normal
http ^1.4
normal
humantime ^2.3
normal
optional
rand ^0.10
normal
rkyv ^0.8
normal
optional
schemars ^1.2
normal
optional
secrecy ^0.10.3
normal
serde ^1.0
normal
serde_json ^1.0
normal
optional
strum ^0.28
normal
thiserror ^2.0
normal
time ^0.3
normal
utoipa =5.4
normal
optional
proptest ^1.11
dev
rstest ^0.26
dev
serde_json ^1.0
dev
Versions
7.1%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
DeepSize
s2_
common
0.37.0
Deep
Size
Required Methods
deep_size
Implementations on Foreign Types
&[T]
(X, Y)
Bound<T>
Bytes
NonZeroU64
Option<T>
String
Vec<T>
bool
u64
usize
Implementors
In s2_
common::
deep_
size
s2_common
::
deep_size
Trait
Deep
Size
Copy item path
Source
pub trait DeepSize { // Required method fn
deep_size
(&self) ->
usize
; }
Required Methods
§
Source
fn
deep_size
(&self) ->
usize
size_of(primitive)
length for chunks of data like strings and bytes (so not including the container overhead)
deep size of all struct fields
deep size of actual variant for enums
Implementations on Foreign Types
§
Source
§
impl
DeepSize
for
bool
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl
DeepSize
for
u64
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl
DeepSize
for
usize
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl
DeepSize
for
String
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl
DeepSize
for
Bytes
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl
DeepSize
for
NonZeroU64
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl<T:
DeepSize
>
DeepSize
for &
[T]
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl<T:
DeepSize
>
DeepSize
for
Bound
<T>
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl<T:
DeepSize
>
DeepSize
for
Option
<T>
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl<T:
DeepSize
>
DeepSize
for
Vec
<T>
Source
§
fn
deep_size
(&self) ->
usize
Source
§
impl<X:
DeepSize
, Y:
DeepSize
>
DeepSize
for
(X, Y)
Source
§
fn
deep_size
(&self) ->
usize
Implementors
§
Source
§
impl
DeepSize
for
CommandRecord
Source
§
impl
DeepSize
for
Record
Source
§
impl
DeepSize
for
StoredRecord
Source
§
impl
DeepSize
for
EncryptedRecord
Source
§
impl
DeepSize
for
EnvelopeRecord
Source
§
impl
DeepSize
for
FencingToken
Source
§
impl
DeepSize
for
Header
Source
§
impl
DeepSize
for
StreamPosition
Source
§
impl<T>
DeepSize
for
Sequenced
<T>
where T:
DeepSize
,