pub struct Borders { /* private fields */ }
Expand description
Bitflags that can be composed to set the visible borders essentially on the block widget.
Implementations§
Source§impl Borders
impl Borders
Sourcepub fn from_bits(bits: u32) -> Option<Borders>
pub fn from_bits(bits: u32) -> Option<Borders>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> Borders
pub const fn from_bits_truncate(bits: u32) -> Borders
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const fn intersects(&self, other: Borders) -> bool
pub const fn intersects(&self, other: Borders) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for Borders
impl BitAndAssign for Borders
Source§fn bitand_assign(&mut self, other: Borders)
fn bitand_assign(&mut self, other: Borders)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Borders
impl BitOrAssign for Borders
Source§fn bitor_assign(&mut self, other: Borders)
fn bitor_assign(&mut self, other: Borders)
Adds the set of flags.
Source§impl BitXorAssign for Borders
impl BitXorAssign for Borders
Source§fn bitxor_assign(&mut self, other: Borders)
fn bitxor_assign(&mut self, other: Borders)
Toggles the set of flags.
Source§impl Extend<Borders> for Borders
impl Extend<Borders> for Borders
Source§fn extend<T: IntoIterator<Item = Borders>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Borders>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Borders> for Borders
impl FromIterator<Borders> for Borders
Source§impl Ord for Borders
impl Ord for Borders
Source§impl PartialOrd for Borders
impl PartialOrd for Borders
Source§impl SubAssign for Borders
impl SubAssign for Borders
Source§fn sub_assign(&mut self, other: Borders)
fn sub_assign(&mut self, other: Borders)
Disables all flags enabled in the set.
impl Copy for Borders
impl Eq for Borders
impl StructuralPartialEq for Borders
Auto Trait Implementations§
impl Freeze for Borders
impl RefUnwindSafe for Borders
impl Send for Borders
impl Sync for Borders
impl Unpin for Borders
impl UnwindSafe for Borders
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