[][src]Struct maker_panel::features::AtPos

pub struct AtPos<U = Unit, S = Unit> { /* fields omitted */ }

A wrapper around a feature that can position other features.

Implementations

impl<U, S> AtPos<U, S> where
    U: Feature + Debug + Clone,
    S: Feature + Debug + Clone
[src]

pub fn x_ends(primary: U, left: Option<S>, right: Option<S>) -> Self[src]

Constructs a feature that positions the centeroid of other features at the left & right points of the primary feature.

pub fn new(primary: U) -> Self[src]

Wraps a feature so others can be positioned around it.

pub fn left(primary: U, left: S) -> Self[src]

Constructs a feature that positions the centeroid of the other feature to the left of the primary feature.

pub fn right(primary: U, right: S) -> Self[src]

Constructs a feature that positions the centeroid of the other feature to the right of the primary feature.

pub fn push(&mut self, feature: S, pos: Positioning)[src]

Adds a feature to be positioned relative to the inner feature, according to the provided positioning parameters.

Trait Implementations

impl<U: Clone, S: Clone> Clone for AtPos<U, S>[src]

impl<U: Debug, S: Debug> Debug for AtPos<U, S>[src]

impl<U, S> Display for AtPos<U, S> where
    U: Feature + Debug + Clone,
    S: Feature + Debug + Clone
[src]

impl<U, S> Feature for AtPos<U, S> where
    U: Feature + Debug + Clone,
    S: Feature + Debug + Clone
[src]

Auto Trait Implementations

impl<U, S> RefUnwindSafe for AtPos<U, S> where
    S: RefUnwindSafe,
    U: RefUnwindSafe
[src]

impl<U, S> Send for AtPos<U, S> where
    S: Send,
    U: Send
[src]

impl<U, S> Sync for AtPos<U, S> where
    S: Sync,
    U: Sync
[src]

impl<U, S> Unpin for AtPos<U, S> where
    S: Unpin,
    U: Unpin
[src]

impl<U, S> UnwindSafe for AtPos<U, S> where
    S: UnwindSafe,
    U: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.