pub struct CoLocatedLayer {
pub usri: String,
pub name: String,
pub geodetic: Geodetic,
pub is_physical_base: bool,
}Expand description
A co-located reality layer (OCS §9).
Fields§
§usri: StringUSRI of this reality layer
name: StringHuman-readable name
geodetic: GeodeticThe physical geodetic coordinates this layer is co-located at
is_physical_base: boolWhether this is the physical base layer
Implementations§
Source§impl CoLocatedLayer
impl CoLocatedLayer
Sourcepub fn physical_base(geodetic: Geodetic) -> Self
pub fn physical_base(geodetic: Geodetic) -> Self
Create a physical base layer (OCS §9).
Sourcepub fn fictional(name: &str, usri: &str, geodetic: Geodetic) -> Self
pub fn fictional(name: &str, usri: &str, geodetic: Geodetic) -> Self
Create a co-located fictional layer (OCS §9.1).
Sourcepub fn historical(name: &str, usri: &str, geodetic: Geodetic) -> Self
pub fn historical(name: &str, usri: &str, geodetic: Geodetic) -> Self
Create a co-located historical layer (OCS §9.1).
Trait Implementations§
Source§impl Clone for CoLocatedLayer
impl Clone for CoLocatedLayer
Source§impl Debug for CoLocatedLayer
impl Debug for CoLocatedLayer
Source§impl PartialEq for CoLocatedLayer
impl PartialEq for CoLocatedLayer
impl StructuralPartialEq for CoLocatedLayer
Auto Trait Implementations§
impl Freeze for CoLocatedLayer
impl RefUnwindSafe for CoLocatedLayer
impl Send for CoLocatedLayer
impl Sync for CoLocatedLayer
impl Unpin for CoLocatedLayer
impl UnsafeUnpin for CoLocatedLayer
impl UnwindSafe for CoLocatedLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more