pub struct TopoFlags(pub(crate) u8);Expand description
Flags that define the properties of segments and edges.
Tuple Fields§
§0: u8Implementations§
Source§impl TopoFlags
impl TopoFlags
Sourcepub const fn from_bits_truncate(bits: u8) -> Self
pub const fn from_bits_truncate(bits: u8) -> Self
Creates new flags, truncating the given bits to valid values.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns true if self contains all flags in other.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns true if self contains any flags in other.
Trait Implementations§
Source§impl BitAndAssign for TopoFlags
impl BitAndAssign for TopoFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for TopoFlags
impl BitOrAssign for TopoFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreimpl Copy for TopoFlags
impl Eq for TopoFlags
impl StructuralPartialEq for TopoFlags
Auto Trait Implementations§
impl Freeze for TopoFlags
impl RefUnwindSafe for TopoFlags
impl Send for TopoFlags
impl Sync for TopoFlags
impl Unpin for TopoFlags
impl UnsafeUnpin for TopoFlags
impl UnwindSafe for TopoFlags
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