pub trait PdfGenerator<Dim: Dimension> {
// Required method
fn _get_unchecked(&self, dim: Dim) -> Vec<Pdf>;
// Provided method
fn get(&self, dim: Dim) -> Vec<Pdf> { ... }
}Expand description
A value that can generate PDFs of arbitrary dimensions.
There exists a blanket implementation for closures that input a length and return a PDF of that length. The closure will be called once per dimension.
Required Methods§
Sourcefn _get_unchecked(&self, dim: Dim) -> Vec<Pdf>
fn _get_unchecked(&self, dim: Dim) -> Vec<Pdf>
Return one 1D PDF for each dimension requested. Callers should not call this function directly and instead call get.