pub struct LocationNode {
pub string: String,
pub sublocations: HashSet<LocationID>,
pub superlocation: Option<LocationID>,
}Fields§
§string: String§sublocations: HashSet<LocationID>§superlocation: Option<LocationID>Implementations§
Source§impl LocationNode
impl LocationNode
pub fn add_sublocation(&mut self, new_id: LocationID) -> bool
Sourcepub fn subpath_exists<'a>(
&'a self,
this_location_id: &'a LocationID,
subpath: &[String],
screenplay: &'a ScreenplayDocument,
) -> Option<(&'a LocationID, Vec<String>)>
pub fn subpath_exists<'a>( &'a self, this_location_id: &'a LocationID, subpath: &[String], screenplay: &'a ScreenplayDocument, ) -> Option<(&'a LocationID, Vec<String>)>
Determines if a path exists under this LocationNode.
let mut screenplay_doc = screenplay_document::ScreenplayDocument::new();Trait Implementations§
Source§impl Clone for LocationNode
impl Clone for LocationNode
Source§fn clone(&self) -> LocationNode
fn clone(&self) -> LocationNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocationNode
impl Debug for LocationNode
Source§impl Default for LocationNode
impl Default for LocationNode
Source§fn default() -> LocationNode
fn default() -> LocationNode
Returns the “default value” for a type. Read more
Source§impl PartialEq for LocationNode
impl PartialEq for LocationNode
impl StructuralPartialEq for LocationNode
Auto Trait Implementations§
impl Freeze for LocationNode
impl RefUnwindSafe for LocationNode
impl Send for LocationNode
impl Sync for LocationNode
impl Unpin for LocationNode
impl UnsafeUnpin for LocationNode
impl UnwindSafe for LocationNode
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