pub struct SingleAxis { /* private fields */ }
Implementations§
Source§impl SingleAxis
impl SingleAxis
pub fn new() -> Self
pub fn type_(self, type_: Type) -> Self
pub fn name<S: Into<String>>(self, name: S) -> Self
pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self
pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self
pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self
pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self
pub fn width<C: Into<CompositeValue>>(self, width: C) -> Self
pub fn height<C: Into<CompositeValue>>(self, height: C) -> Self
pub fn orient(self, orient: Orient) -> Self
pub fn inverse(self, inverse: bool) -> Self
pub fn min<S: Into<String>>(self, min: S) -> Self
pub fn max<S: Into<String>>(self, max: S) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SingleAxis
impl RefUnwindSafe for SingleAxis
impl Send for SingleAxis
impl Sync for SingleAxis
impl Unpin for SingleAxis
impl UnwindSafe for SingleAxis
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> 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 more