pub struct RelSet(/* private fields */);Expand description
A set of relative positions for partial box rendering.
Supports bitwise OR to combine positions and check membership.
§Examples
use extui::{RelSet, Rel};
let edges = RelSet::TOP | RelSet::BOTTOM;
assert!(edges.contains(Rel::TopLeft));
assert!(!edges.contains(Rel::CenterLeft));Implementations§
Trait Implementations§
impl Copy for RelSet
Auto Trait Implementations§
impl Freeze for RelSet
impl RefUnwindSafe for RelSet
impl Send for RelSet
impl Sync for RelSet
impl Unpin for RelSet
impl UnwindSafe for RelSet
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