[][src]Function screeps::raw_memory::set_active_foreign_segment

pub fn set_active_foreign_segment(username: &str, id: Option<u32>)

Implements RawMemory.setActiveForeignSegment

To use the default public segment of username (as set with set_default_public_segment), Use None instead of Some(id).

To clear the foreign segment, pass the empty string "" as a username.