Skip to main content

width

Function width 

Source
pub fn width(dim: usize) -> Result<u32>
Expand description

dim as the shape grammar writes it, if it is a dimension a collection can be opened with.

The width comes back rather than a bare yes, because every caller that has to ask this also has to write the dimension into the collection’s description, and the check is what makes the conversion safe.

§Errors

Code::Invalid, with the range in the message.