Trait screeps::traits::MaybeHasId
source · pub trait MaybeHasId {
// Required method
fn try_raw_id(&self) -> Option<RawObjectId>;
}
Required Methods§
sourcefn try_raw_id(&self) -> Option<RawObjectId>
fn try_raw_id(&self) -> Option<RawObjectId>
Object ID of the object, which can be used to efficiently fetch a
fresh reference to the object on subsequent ticks, or None
if the
object doesn’t currently have an id.