Enum screeps::objects::LineDrawStyle
source · [−]pub enum LineDrawStyle {
Solid,
Dashed,
Dotted,
}
Variants
Solid
Dashed
Dotted
Implementations
sourceimpl LineDrawStyle
impl LineDrawStyle
Trait Implementations
sourceimpl Clone for LineDrawStyle
impl Clone for LineDrawStyle
sourcefn clone(&self) -> LineDrawStyle
fn clone(&self) -> LineDrawStyle
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 LineDrawStyle
impl Default for LineDrawStyle
sourcefn default() -> LineDrawStyle
fn default() -> LineDrawStyle
Returns the “default value” for a type. Read more
sourceimpl Serialize for LineDrawStyle
impl Serialize for LineDrawStyle
sourceimpl<'_a> TryFrom<&'_a LineDrawStyle> for Value
impl<'_a> TryFrom<&'_a LineDrawStyle> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: &'_a LineDrawStyle) -> Result<Self, Self::Error>
fn try_from(value: &'_a LineDrawStyle) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl<'_a> TryFrom<&'_a mut LineDrawStyle> for Value
impl<'_a> TryFrom<&'_a mut LineDrawStyle> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: &'_a mut LineDrawStyle) -> Result<Self, Self::Error>
fn try_from(value: &'_a mut LineDrawStyle) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<LineDrawStyle> for Value
impl TryFrom<LineDrawStyle> for Value
type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
sourcefn try_from(value: LineDrawStyle) -> Result<Self, Self::Error>
fn try_from(value: LineDrawStyle) -> Result<Self, Self::Error>
Performs the conversion.
impl JsSerialize for LineDrawStyle
Auto Trait Implementations
impl RefUnwindSafe for LineDrawStyle
impl Send for LineDrawStyle
impl Sync for LineDrawStyle
impl Unpin for LineDrawStyle
impl UnwindSafe for LineDrawStyle
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