Trait EwkbWrite

Source
pub trait EwkbWrite: Debug + Sized {
    // Required method
    fn type_id(&self) -> u32;

    // Provided methods
    fn opt_srid(&self) -> Option<i32> { ... }
    fn wkb_type_id(point_type: &PointType, srid: Option<i32>) -> u32 { ... }
    fn write_ewkb<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error> { ... }
    fn to_hex_ewkb(&self) -> String { ... }
}

Required Methods§

Source

fn type_id(&self) -> u32

Provided Methods§

Source

fn opt_srid(&self) -> Option<i32>

Source

fn wkb_type_id(point_type: &PointType, srid: Option<i32>) -> u32

Source

fn write_ewkb<W: Write + ?Sized>(&self, w: &mut W) -> Result<(), Error>

Source

fn to_hex_ewkb(&self) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> EwkbWrite for EwkbPoint<'a>

Source§

impl<'a, P, I, L, K, T, J> EwkbWrite for EwkbMultiPolygon<'a, P, I, L, K, T, J>
where P: 'a + Point, I: 'a + Iterator<Item = &'a P> + ExactSizeIterator<Item = &'a P>, L: 'a + LineString<'a, ItemType = P, Iter = I>, K: 'a + Iterator<Item = &'a L> + ExactSizeIterator<Item = &'a L>, T: 'a + Polygon<'a, ItemType = L, Iter = K>, J: 'a + Iterator<Item = &'a T> + ExactSizeIterator<Item = &'a T>,

Source§

impl<'a, P, I, T, J> EwkbWrite for EwkbMultiLineString<'a, P, I, T, J>
where P: 'a + Point, I: 'a + Iterator<Item = &'a P> + ExactSizeIterator<Item = &'a P>, T: 'a + LineString<'a, ItemType = P, Iter = I>, J: 'a + Iterator<Item = &'a T> + ExactSizeIterator<Item = &'a T>,

Source§

impl<'a, P, I, T, J> EwkbWrite for EwkbPolygon<'a, P, I, T, J>
where P: 'a + Point, I: 'a + Iterator<Item = &'a P> + ExactSizeIterator<Item = &'a P>, T: 'a + LineString<'a, ItemType = P, Iter = I>, J: 'a + Iterator<Item = &'a T> + ExactSizeIterator<Item = &'a T>,

Source§

impl<'a, P, PI, MP, L, LI, ML, Y, YI, MY, G, GI, GC> EwkbWrite for EwkbGeometry<'a, P, PI, MP, L, LI, ML, Y, YI, MY, G, GI, GC>
where P: 'a + Point, PI: 'a + Iterator<Item = &'a P> + ExactSizeIterator<Item = &'a P>, MP: 'a + MultiPoint<'a, ItemType = P, Iter = PI>, L: 'a + LineString<'a, ItemType = P, Iter = PI>, LI: 'a + Iterator<Item = &'a L> + ExactSizeIterator<Item = &'a L>, ML: 'a + MultiLineString<'a, ItemType = L, Iter = LI>, Y: 'a + Polygon<'a, ItemType = L, Iter = LI>, YI: 'a + Iterator<Item = &'a Y> + ExactSizeIterator<Item = &'a Y>, MY: 'a + MultiPolygon<'a, ItemType = Y, Iter = YI>, G: 'a + Geometry<'a, Point = P, LineString = L, Polygon = Y, MultiPoint = MP, MultiLineString = ML, MultiPolygon = MY, GeometryCollection = GC>, GI: 'a + Iterator<Item = &'a G> + ExactSizeIterator<Item = &'a G>, GC: 'a + GeometryCollection<'a, ItemType = G, Iter = GI>,

Source§

impl<'a, P, PI, MP, L, LI, ML, Y, YI, MY, G, GI, GC> EwkbWrite for EwkbGeometryCollection<'a, P, PI, MP, L, LI, ML, Y, YI, MY, G, GI, GC>
where P: 'a + Point, PI: 'a + Iterator<Item = &'a P> + ExactSizeIterator<Item = &'a P>, MP: 'a + MultiPoint<'a, ItemType = P, Iter = PI>, L: 'a + LineString<'a, ItemType = P, Iter = PI>, LI: 'a + Iterator<Item = &'a L> + ExactSizeIterator<Item = &'a L>, ML: 'a + MultiLineString<'a, ItemType = L, Iter = LI>, Y: 'a + Polygon<'a, ItemType = L, Iter = LI>, YI: 'a + Iterator<Item = &'a Y> + ExactSizeIterator<Item = &'a Y>, MY: 'a + MultiPolygon<'a, ItemType = Y, Iter = YI>, G: 'a + Geometry<'a, Point = P, LineString = L, Polygon = Y, MultiPoint = MP, MultiLineString = ML, MultiPolygon = MY, GeometryCollection = GC>, GI: 'a + Iterator<Item = &'a G> + ExactSizeIterator<Item = &'a G>, GC: 'a + GeometryCollection<'a, ItemType = G, Iter = GI>,

Source§

impl<'a, T, I> EwkbWrite for EwkbLineString<'a, T, I>
where T: 'a + Point, I: 'a + Iterator<Item = &'a T> + ExactSizeIterator<Item = &'a T>,

Source§

impl<'a, T, I> EwkbWrite for EwkbMultiPoint<'a, T, I>
where T: 'a + Point, I: 'a + Iterator<Item = &'a T> + ExactSizeIterator<Item = &'a T>,