pub struct B3 {
pub x: bool,
pub y: bool,
pub z: bool,
}Expand description
B3
Fields§
§x: bool§y: bool§z: boolImplementations§
Source§impl B3
impl B3
pub fn from(v: B3) -> Self
pub fn falsed() -> Self
pub fn new_x(x: bool) -> Self
pub fn new(x: bool, y: bool, z: bool) -> Self
pub fn get_x(&mut self) -> bool
pub fn set_x(&mut self, new_val: bool)
pub fn get_y(&mut self) -> bool
pub fn set_y(&mut self, new_val: bool)
pub fn get_z(&mut self) -> bool
pub fn set_z(&mut self, new_val: bool)
Trait Implementations§
impl Copy for B3
impl StructuralPartialEq for B3
Auto Trait Implementations§
impl Freeze for B3
impl RefUnwindSafe for B3
impl Send for B3
impl Sync for B3
impl Unpin for B3
impl UnwindSafe for B3
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.