check_write_size

Function check_write_size 

Source
pub fn check_write_size(
    requested: usize,
    capacity: usize,
) -> Result<(), WriteTooLargeError>
Expand description

Helper function checking that requested <= capacity and creating an appropriate WriteTooLargeError if this is not the case.