Skip to main content

convert

Function convert 

Source
pub fn convert<Src, Dst>(src: &Src) -> Dst
where Src: Convert<Dst>,
Expand description

Convert src into the destination kind Dst.

Mirrors boost::geometry::convert(src, dst) from boost/geometry/algorithms/convert.hpp. The destination is inferred from the call-site annotation:

let pg: Polygon<P> = convert(&bx);