[−][src]Enum pane::Contents
Possible content of a Pane
Variants
Text(String, TextFormat<S>)
Text with some format
Methods
impl<S> Contents<S> where
S: Scalar,
[src]
S: Scalar,
pub fn text<T, F>(text: T, format: F) -> Self where
T: ToString,
F: Into<TextFormat<S>>,
[src]
T: ToString,
F: Into<TextFormat<S>>,
Create a new Context::Text
Trait Implementations
impl<S: Clone> Clone for Contents<S> where
S: Scalar,
[src]
S: Scalar,
fn clone(&self) -> Contents<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: PartialOrd> PartialOrd<Contents<S>> for Contents<S> where
S: Scalar,
[src]
S: Scalar,
fn partial_cmp(&self, other: &Contents<S>) -> Option<Ordering>
[src]
fn lt(&self, other: &Contents<S>) -> bool
[src]
fn le(&self, other: &Contents<S>) -> bool
[src]
fn gt(&self, other: &Contents<S>) -> bool
[src]
fn ge(&self, other: &Contents<S>) -> bool
[src]
impl<S: PartialEq> PartialEq<Contents<S>> for Contents<S> where
S: Scalar,
[src]
S: Scalar,
impl<S: Debug> Debug for Contents<S> where
S: Scalar,
[src]
S: Scalar,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,