[][src]Function rec::exact

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

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

Examples

use rec::{exact, Element};

assert_eq!(exact(3, "x"), String::from("x{3}").into_rec());