pub struct PropName<'a>(/* private fields */);Expand description
A zero-allocation two-part property name yielded by FeatureRef::iter_properties.
The two parts concatenate on Display as "{}{}":
- For regular columns:
(column_name, "")— zero allocation, second part always empty. - For
SharedDictsub-items:(prefix, suffix)— both borrow directly from layer data.
Structural PartialEq compares both parts independently. Use PartialEq<str> or
PartialEq<&str> (also implemented) to compare against a plain &str as if the two
parts were concatenated.
Trait Implementations§
impl<'a> Copy for PropName<'a>
Auto Trait Implementations§
impl<'a> Freeze for PropName<'a>
impl<'a> RefUnwindSafe for PropName<'a>
impl<'a> Send for PropName<'a>
impl<'a> Sync for PropName<'a>
impl<'a> Unpin for PropName<'a>
impl<'a> UnsafeUnpin for PropName<'a>
impl<'a> UnwindSafe for PropName<'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> 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