[][src]Function rec::min

pub fn min<T: Element>(quantity: usize, element: T) -> Rec

Returns a Rec representing the given Element repeated at least a given number of times.

Examples

use rec::{min, Element};

assert_eq!(min(2, "x"), String::from("x{2,}").into_rec());