Trait Len

Source
trait Len {
    // Required method
    fn len(&self) -> usize;
}
Expand description

Report length of the struct as in byte stream

Note that this doesn’t mean length of struct

It is simply used to denote how long the struct is if it were sent over the wire

Required Methods§

Source

fn len(&self) -> usize

Report length of the struct as in byte stream

Implementors§