Struct screeps::objects::CircleStyle
source · [−]pub struct CircleStyle { /* private fields */ }
Implementations
sourceimpl CircleStyle
impl CircleStyle
pub fn radius(self, val: f32) -> CircleStyle
pub fn fill(self, val: &str) -> CircleStyle
pub fn opacity(self, val: f32) -> CircleStyle
pub fn stroke(self, val: &str) -> CircleStyle
pub fn stroke_width(self, val: f32) -> CircleStyle
Trait Implementations
sourceimpl Clone for CircleStyle
impl Clone for CircleStyle
sourcefn clone(&self) -> CircleStyle
fn clone(&self) -> CircleStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for CircleStyle
impl Default for CircleStyle
sourcefn default() -> CircleStyle
fn default() -> CircleStyle
Returns the “default value” for a type. Read more
sourceimpl Serialize for CircleStyle
impl Serialize for CircleStyle
sourceimpl<'_a> TryFrom<&'_a CircleStyle> for Value
impl<'_a> TryFrom<&'_a CircleStyle> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: &'_a CircleStyle) -> Result<Self, Self::Error>
fn try_from(value: &'_a CircleStyle) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'_a> TryFrom<&'_a mut CircleStyle> for Value
impl<'_a> TryFrom<&'_a mut CircleStyle> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: &'_a mut CircleStyle) -> Result<Self, Self::Error>
fn try_from(value: &'_a mut CircleStyle) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<CircleStyle> for Value
impl TryFrom<CircleStyle> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: CircleStyle) -> Result<Self, Self::Error>
fn try_from(value: CircleStyle) -> Result<Self, Self::Error>
Performs the conversion.
impl JsSerialize for CircleStyle
Auto Trait Implementations
impl RefUnwindSafe for CircleStyle
impl Send for CircleStyle
impl Sync for CircleStyle
impl Unpin for CircleStyle
impl UnwindSafe for CircleStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more