pub enum AbstractRingKindRef<'a> {
LinearRing(&'a LinearRing),
AbstractRingKind(&'a AbstractRingKind),
}Expand description
Borrowed view over AbstractRingKind, mirroring its variants without
requiring an owned copy of the referenced geometry.
Unlike the owned enum, the recursive AbstractRingKind variant does not
need a Box: a reference is always pointer-sized regardless of what it
points to.
Variants§
LinearRing(&'a LinearRing)
AbstractRingKind(&'a AbstractRingKind)
Implementations§
Source§impl<'a> AbstractRingKindRef<'a>
impl<'a> AbstractRingKindRef<'a>
Sourcepub fn to_owned(&self) -> AbstractRingKind
pub fn to_owned(&self) -> AbstractRingKind
Clones the referenced ring (and, for a nested ring, its entire boxed
subtree) into an owned AbstractRingKind.
Trait Implementations§
Source§impl AsAbstractCurve for AbstractRingKindRef<'_>
impl AsAbstractCurve for AbstractRingKindRef<'_>
Source§fn abstract_curve(&self) -> &AbstractCurve
fn abstract_curve(&self) -> &AbstractCurve
Returns a reference to the embedded
AbstractCurve base data.Source§impl AsAbstractGeometricPrimitive for AbstractRingKindRef<'_>
impl AsAbstractGeometricPrimitive for AbstractRingKindRef<'_>
Source§fn abstract_geometric_primitive(&self) -> &AbstractGeometricPrimitive
fn abstract_geometric_primitive(&self) -> &AbstractGeometricPrimitive
Returns a reference to the embedded
AbstractGeometricPrimitive base data.Source§impl AsAbstractGeometry for AbstractRingKindRef<'_>
impl AsAbstractGeometry for AbstractRingKindRef<'_>
Source§fn abstract_geometry(&self) -> &AbstractGeometry
fn abstract_geometry(&self) -> &AbstractGeometry
Returns a reference to the embedded
AbstractGeometry base data.fn srs_name(&self) -> Option<&String>
fn srs_dimension(&self) -> Option<u32>
Source§impl AsAbstractGml for AbstractRingKindRef<'_>
impl AsAbstractGml for AbstractRingKindRef<'_>
Source§fn abstract_gml(&self) -> &AbstractGml
fn abstract_gml(&self) -> &AbstractGml
Returns a reference to the embedded
AbstractGml base data.Source§impl AsAbstractObject for AbstractRingKindRef<'_>
impl AsAbstractObject for AbstractRingKindRef<'_>
fn abstract_object(&self) -> &AbstractObject
Source§impl<'a> AsAbstractRing for AbstractRingKindRef<'a>
impl<'a> AsAbstractRing for AbstractRingKindRef<'a>
Source§fn abstract_ring(&self) -> &AbstractRing
fn abstract_ring(&self) -> &AbstractRing
Returns a reference to the embedded
AbstractRing base data.Source§impl<'a> Clone for AbstractRingKindRef<'a>
impl<'a> Clone for AbstractRingKindRef<'a>
Source§fn clone(&self) -> AbstractRingKindRef<'a>
fn clone(&self) -> AbstractRingKindRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AbstractRingKindRef<'a>
Source§impl<'a> Debug for AbstractRingKindRef<'a>
impl<'a> Debug for AbstractRingKindRef<'a>
Source§impl<'a> From<&'a AbstractRingKind> for AbstractRingKindRef<'a>
impl<'a> From<&'a AbstractRingKind> for AbstractRingKindRef<'a>
Source§fn from(x: &'a AbstractRingKind) -> Self
fn from(x: &'a AbstractRingKind) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a LinearRing> for AbstractRingKindRef<'a>
impl<'a> From<&'a LinearRing> for AbstractRingKindRef<'a>
Source§fn from(x: &'a LinearRing) -> Self
fn from(x: &'a LinearRing) -> Self
Converts to this type from the input type.
Source§impl<'a> HasGeometryType for AbstractRingKindRef<'a>
impl<'a> HasGeometryType for AbstractRingKindRef<'a>
fn geometry_type(&self) -> GeometryType
Source§impl<'a> TryFrom<AbstractCurveKindRef<'a>> for AbstractRingKindRef<'a>
impl<'a> TryFrom<AbstractCurveKindRef<'a>> for AbstractRingKindRef<'a>
Source§impl<'a> TryFrom<AbstractGeometricPrimitiveKindRef<'a>> for AbstractRingKindRef<'a>
impl<'a> TryFrom<AbstractGeometricPrimitiveKindRef<'a>> for AbstractRingKindRef<'a>
Source§impl<'a> TryFrom<AbstractGeometryKindRef<'a>> for AbstractRingKindRef<'a>
impl<'a> TryFrom<AbstractGeometryKindRef<'a>> for AbstractRingKindRef<'a>
Source§impl<'a> TryFrom<AbstractRingKindRef<'a>> for &'a LinearRing
impl<'a> TryFrom<AbstractRingKindRef<'a>> for &'a LinearRing
Auto Trait Implementations§
impl<'a> Freeze for AbstractRingKindRef<'a>
impl<'a> RefUnwindSafe for AbstractRingKindRef<'a>
impl<'a> Send for AbstractRingKindRef<'a>
impl<'a> Sync for AbstractRingKindRef<'a>
impl<'a> Unpin for AbstractRingKindRef<'a>
impl<'a> UnsafeUnpin for AbstractRingKindRef<'a>
impl<'a> UnwindSafe for AbstractRingKindRef<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.