[−][src]Struct screeps::objects::Flag
Methods
impl Flag
[src]
pub fn color(&self) -> Color
[src]
pub fn name(&self) -> String
[src]
pub fn secondary_color(&self) -> Color
[src]
impl Flag
[src]
pub fn remove(&self)
[src]
pub fn set_color(&self, color: Color, secondary_color: Option<Color>)
[src]
pub fn set_position<T: HasPosition>(&self, pos: T)
[src]
pub fn set_position_xy(&self, x: u32, y: u32)
[src]
Trait Implementations
impl RoomObjectProperties for Flag
[src]
impl FromExpectedType<Reference> for Flag
[src]
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
[src]
impl Clone for Flag
[src]
fn clone(&self) -> Flag
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Flag> for Reference
[src]
impl AsRef<Reference> for Flag
[src]
impl TryFrom<Flag> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Flag) -> Result<Self, Self::Error>
[src]
impl TryFrom<Reference> for Flag
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error>
[src]
impl<'_r> TryFrom<&'_r Reference> for Flag
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error>
[src]
impl TryFrom<Value> for Flag
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
impl<'_r> TryFrom<&'_r Value> for Flag
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error>
[src]
impl InstanceOf for Flag
[src]
fn instance_of(reference: &Reference) -> bool
[src]
impl JsSerialize for Flag
[src]
impl ReferenceType for Flag
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
impl JsSerializeOwned for Flag
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl<'_r> JsSerializeOwned for &'_r Flag
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> HasPosition for T where
T: RoomObjectProperties,
[src]
T: RoomObjectProperties,
fn pos(&Self) -> RoomPosition
[src]
impl<T> SizedRoomObject for T where
T: Into<Reference> + ReferenceType<Error = ConversionError, Error = ConversionError> + TryFrom<Value> + TryFrom<Reference> + RoomObjectProperties,
[src]
T: Into<Reference> + ReferenceType<Error = ConversionError, Error = ConversionError> + TryFrom<Value> + TryFrom<Reference> + RoomObjectProperties,
impl<T> FromExpectedType for T where
T: FromExpectedType<Reference>,
[src]
T: FromExpectedType<Reference>,
fn from_expected_type(Value) -> Result<T, ConversionError>
[src]
impl<T, U> IntoExpectedType for T where
U: FromExpectedType<T>,
[src]
U: FromExpectedType<T>,
fn into_expected_type(Self) -> Result<U, ConversionError>
[src]
impl<T> From for T
[src]
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, 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,