[][src]Struct mrml::util::Context

pub struct Context { /* fields omitted */ }

Implementations

impl Context[src]

pub fn default() -> Self[src]

pub fn new(
    container_width: Option<Size>,
    siblings: usize,
    raw_siblings: usize,
    index: usize
) -> Self
[src]

pub fn from(
    other: &Self,
    container_width: Option<Size>,
    siblings: usize,
    raw_siblings: usize,
    index: usize
) -> Self
[src]

pub fn container_width(&self) -> Option<Size>[src]

pub fn set_container_width(&mut self, value: Option<Size>)[src]

pub fn siblings(&self) -> usize[src]

pub fn set_siblings(&mut self, value: usize)[src]

pub fn raw_siblings(&self) -> usize[src]

pub fn set_raw_siblings(&mut self, value: usize)[src]

pub fn non_raw_siblings(&self) -> usize[src]

pub fn index(&self) -> usize[src]

pub fn set_index(&mut self, value: usize)[src]

pub fn is_first(&self) -> bool[src]

pub fn is_last(&self) -> bool[src]

Trait Implementations

impl Clone for Context[src]

impl Debug for Context[src]

impl PropertyMap for Context[src]

Auto Trait Implementations

impl RefUnwindSafe for Context

impl Send for Context

impl Sync for Context

impl Unpin for Context

impl UnwindSafe for Context

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<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.