#[non_exhaustive]pub struct AreaSpec {
pub id: String,
pub kind: AreaKind,
pub control: Option<String>,
pub value: Option<String>,
pub path: Option<String>,
pub grips: Vec<Grip>,
pub cursor: Option<DragKind>,
}Expand description
An area declared to the registry (register).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§kind: AreaKind§control: Option<String>For an edit area: the control it writes, in the person’s words.
value: Option<String>For an edit area: the control’s value now, formatted.
path: Option<String>For an edit area: what it writes, as the application names it (a parameter’s path).
grips: Vec<Grip>§cursor: Option<DragKind>The cursor of its drag, shown by the framework.
Implementations§
Source§impl AreaSpec
impl AreaSpec
pub fn new(id: impl Into<String>, kind: AreaKind) -> AreaSpec
An area that moves what is shown.
Sourcepub fn edit(id: impl Into<String>, control: impl Into<String>) -> AreaSpec
pub fn edit(id: impl Into<String>, control: impl Into<String>) -> AreaSpec
An area that edits control (“Exposure”).
Sourcepub fn path(self, path: impl Into<String>) -> AreaSpec
pub fn path(self, path: impl Into<String>) -> AreaSpec
What it writes, as the application names it (exposure).
Trait Implementations§
impl StructuralPartialEq for AreaSpec
Auto Trait Implementations§
impl Freeze for AreaSpec
impl RefUnwindSafe for AreaSpec
impl Send for AreaSpec
impl Sync for AreaSpec
impl Unpin for AreaSpec
impl UnsafeUnpin for AreaSpec
impl UnwindSafe for AreaSpec
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