/// Gets the numeric limit of the limit, or default value. If there is no limit, None is
/// returned.
Gets the numeric limit of the limit, or default value. If there is no limit, None is
returned.
Gets the numeric limit of the limit or default value . If there is no limit None is returned .
pub fn limit_or_default(&self, default: usize) -> Option<usize> {
        match self {
            Limit::None => None,
            Limit::Default => Some(default),
            Limit::Maximum(max) => Some(*max),
        }
    }
pub fn limit_or_default ( & self , default : usize ) -> Option < usize > { match self { Limit :: None => None , Limit :: Default => Some ( default ) , Limit :: Maximum ( max ) => Some ( * max ) , } }
Gets the numeric limit of the limit, or default value.
Gets the numeric limit of the limit or default value .
&self
default
usize