pub struct Places(/* private fields */);Expand description
Where an Action’s button renders: Action::PLACES.
// On the detail page and the bulk bar, not on each row or the edit page.
const PLACES: Places = Places::DETAIL.with(Places::BULK);
assert!(PLACES.contains(Places::BULK));
assert!(!PLACES.contains(Places::ROW));Implementations§
Source§impl Places
impl Places
Sourcepub const EDIT: Self
pub const EDIT: Self
A button in the edit page’s header. It posts a form of its own, so it runs on the record as stored, and a change typed into the edit form and not saved is lost.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Whether any place of other is one of these.
Trait Implementations§
impl Copy for Places
impl Eq for Places
impl StructuralPartialEq for Places
Auto Trait Implementations§
impl Forget for Places
impl Freeze for Places
impl RefUnwindSafe for Places
impl Send for Places
impl Sync for Places
impl Unpin for Places
impl UnsafeUnpin for Places
impl UnwindSafe for Places
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.