[−][src]Struct screeps::objects::StructurePowerBank
Methods
impl StructurePowerBank
[src]
Trait Implementations
impl HasId for StructurePowerBank
[src]
impl RoomObjectProperties for StructurePowerBank
[src]
impl StructureProperties for StructurePowerBank
[src]
fn structure_type(&self) -> StructureType
[src]
fn destroy(&self) -> ReturnCode
[src]
fn is_active(&self) -> bool
[src]
fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
[src]
Usable on either owned structures or neutral structures in owned rooms, returns ReturnCode::NotOwner
otherwise. Read more
fn as_structure(self) -> Structure where
Self: SizedRoomObject,
[src]
Self: SizedRoomObject,
impl OwnedStructureProperties for StructurePowerBank
[src]
fn my(&self) -> bool
[src]
fn owner_name(&self) -> Option<String>
[src]
fn as_owned_structure(self) -> OwnedStructure where
Self: SizedRoomObject,
[src]
Self: SizedRoomObject,
impl CanDecay for StructurePowerBank
[src]
fn ticks_to_decay(&self) -> u32
[src]
impl Attackable for StructurePowerBank
[src]
impl FromExpectedType<Reference> for StructurePowerBank
[src]
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
[src]
impl From<StructurePowerBank> for Reference
[src]
fn from(value: StructurePowerBank) -> Self
[src]
impl PartialEq<StructurePowerBank> for StructurePowerBank
[src]
fn eq(&self, other: &StructurePowerBank) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for StructurePowerBank
[src]
fn clone(&self) -> StructurePowerBank
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for StructurePowerBank
[src]
impl Eq for StructurePowerBank
[src]
impl TryFrom<StructurePowerBank> for Reference
[src]
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: StructurePowerBank) -> Result<Self, Self::Error>
[src]
impl TryFrom<Reference> for StructurePowerBank
[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 StructurePowerBank
[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 StructurePowerBank
[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 StructurePowerBank
[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 JsSerialize for StructurePowerBank
[src]
impl InstanceOf for StructurePowerBank
[src]
fn instance_of(reference: &Reference) -> bool
[src]
impl ReferenceType for StructurePowerBank
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
impl JsSerializeOwned for StructurePowerBank
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
impl<'_r> JsSerializeOwned for &'_r StructurePowerBank
[src]
fn into_js_owned<'_a>(value: &'_a mut Option<Self>) -> SerializedValue<'_a>
[src]
Auto Trait Implementations
impl Unpin for StructurePowerBank
impl Sync for StructurePowerBank
impl Send for StructurePowerBank
impl RefUnwindSafe for StructurePowerBank
impl UnwindSafe for StructurePowerBank
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<Value> for T where
T: FromExpectedType<Reference>,
[src]
T: FromExpectedType<Reference>,
fn from_expected_type(Value) -> Result<T, ConversionError>
[src]
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> From<T> for T
[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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,