[−][src]Struct mrml::util::Context
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]
container_width: Option<Size>,
siblings: usize,
raw_siblings: usize,
index: usize
) -> Self
pub fn from(
other: &Self,
container_width: Option<Size>,
siblings: usize,
raw_siblings: usize,
index: usize
) -> Self
[src]
other: &Self,
container_width: Option<Size>,
siblings: usize,
raw_siblings: usize,
index: usize
) -> Self
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]
fn inner(&self) -> &HashMap<String, String>
[src]
fn inner_mut(&mut self) -> &mut HashMap<String, String>
[src]
fn is_empty(&self) -> bool
[src]
fn merge(&mut self, other: &Self)
[src]
fn get<K: ToString>(&self, key: K) -> Option<String>
[src]
fn set<K: ToString, V: ToString>(&mut self, key: K, value: V)
[src]
fn maybe_set<K: ToString, V: ToString>(&mut self, key: K, value: Option<V>)
[src]
fn get_entries(&self) -> Vec<(String, String)>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,