[−][src]Trait blocking_permit::Splittable
Trait for buffer types that may be split at a maximum length.
This is enabled via the cleaver feature.
Required methods
fn split_if(&mut self, max: usize) -> Option<Self>
Split if larger than a maximum length.
If self has length greater than the specified maximum, split it into two, returning the new leading segment and with self mutated to contain the remainder.
Implementations on Foreign Types
impl Splittable for Bytes
[src]
This implementation is inexpensive, relying on Bytes::split_to
which does
not copy.