pub struct Layer<M = (), P: Clone + Default = Properties, D: Clone + Default = MValue> {
pub name: String,
pub features: Vec<VectorFeature<M, P, D>>,
}Expand description
Layer Class to contain the layer information for splitting or simplifying
Fields§
§name: Stringthe layer name
features: Vec<VectorFeature<M, P, D>>the layer’s features
Implementations§
Trait Implementations§
Source§impl<M: Clone, P: Clone + Clone + Default, D: Clone + Clone + Default> Clone for Layer<M, P, D>
impl<M: Clone, P: Clone + Clone + Default, D: Clone + Clone + Default> Clone for Layer<M, P, D>
Source§impl<M: Debug, P: Debug + Clone + Default, D: Debug + Clone + Default> Debug for Layer<M, P, D>
impl<M: Debug, P: Debug + Clone + Default, D: Debug + Clone + Default> Debug for Layer<M, P, D>
Source§impl<M: PartialEq, P: PartialEq + Clone + Default, D: PartialEq + Clone + Default> PartialEq for Layer<M, P, D>
impl<M: PartialEq, P: PartialEq + Clone + Default, D: PartialEq + Clone + Default> PartialEq for Layer<M, P, D>
impl<M, P: Clone + Default, D: Clone + Default> StructuralPartialEq for Layer<M, P, D>
Auto Trait Implementations§
impl<M, P, D> Freeze for Layer<M, P, D>
impl<M, P, D> RefUnwindSafe for Layer<M, P, D>
impl<M, P, D> Send for Layer<M, P, D>
impl<M, P, D> Sync for Layer<M, P, D>
impl<M, P, D> Unpin for Layer<M, P, D>
impl<M, P, D> UnwindSafe for Layer<M, P, D>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 more