[−][src]Struct screeps::objects::TextStyle
Implementations
impl TextStyle
[src]
pub fn color(self, val: &str) -> TextStyle
[src]
pub fn font(self, val: f32) -> TextStyle
[src]
pub fn custom_font(self, val: &str) -> TextStyle
[src]
pub fn stroke(self, val: &str) -> TextStyle
[src]
pub fn stroke_width(self, val: f32) -> TextStyle
[src]
pub fn background_color(self, val: &str) -> TextStyle
[src]
pub fn background_padding(self, val: f32) -> TextStyle
[src]
pub fn align(self, val: TextAlign) -> TextStyle
[src]
pub fn opacity(self, val: f32) -> TextStyle
[src]
Trait Implementations
impl Clone for TextStyle
[src]
impl Default for TextStyle
[src]
impl JsSerialize for TextStyle
[src]
impl JsSerializeOwned for TextStyle
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl<'_r> JsSerializeOwned for &'_r TextStyle
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl Serialize for TextStyle
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'_a> TryFrom<&'_a TextStyle> for Value
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &'_a TextStyle) -> Result<Self, Self::Error>
[src]
impl<'_a> TryFrom<&'_a mut TextStyle> for Value
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &'_a mut TextStyle) -> Result<Self, Self::Error>
[src]
impl TryFrom<TextStyle> for Value
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
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, U> IntoExpectedType<U> for T where
U: FromExpectedType<T>,
[src]
U: FromExpectedType<T>,
fn into_expected_type(Self) -> Result<U, ConversionError>
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,