pub struct PropertyDesc<'a> {
pub name: &'a str,
pub scope: PropertyScope,
pub data_driven: bool,
pub paint_lays_out: bool,
pub attribute_name: &'a str,
pub default: PropertyDefault<'a>,
}Expand description
Descriptor for one custom paint or layout property.
Fields§
§name: &'a str§scope: PropertyScope§data_driven: bool§paint_lays_out: bool§attribute_name: &'a str§default: PropertyDefault<'a>Implementations§
Source§impl<'a> PropertyDesc<'a>
impl<'a> PropertyDesc<'a>
Sourcepub const fn paint(name: &'a str, default: PropertyDefault<'a>) -> Self
pub const fn paint(name: &'a str, default: PropertyDefault<'a>) -> Self
Constant (non-data-driven) paint property.
Sourcepub const fn paint_data_driven(
name: &'a str,
attribute_name: &'a str,
default: PropertyDefault<'a>,
) -> Self
pub const fn paint_data_driven( name: &'a str, attribute_name: &'a str, default: PropertyDefault<'a>, ) -> Self
Data-driven paint property backed by a vertex attribute.
Sourcepub const fn layout(name: &'a str, default: PropertyDefault<'a>) -> Self
pub const fn layout(name: &'a str, default: PropertyDefault<'a>) -> Self
Layout property.
Trait Implementations§
Source§impl<'a> Clone for PropertyDesc<'a>
impl<'a> Clone for PropertyDesc<'a>
impl<'a> Copy for PropertyDesc<'a>
Auto Trait Implementations§
impl<'a> Forget for PropertyDesc<'a>
impl<'a> Freeze for PropertyDesc<'a>
impl<'a> Move for PropertyDesc<'a>
impl<'a> RefUnwindSafe for PropertyDesc<'a>
impl<'a> Send for PropertyDesc<'a>
impl<'a> Sync for PropertyDesc<'a>
impl<'a> Unpin for PropertyDesc<'a>
impl<'a> UnsafeUnpin for PropertyDesc<'a>
impl<'a> UnwindSafe for PropertyDesc<'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