pub trait TLocation {
Show 17 methods
fn get_session(&self) -> Result<Box<dyn TSession>, SessionError>;
fn get_path(&self) -> Result<PathBuf, SessionError>;
fn set_path(&self, path: PathBuf) -> Result<(), SessionError>;
fn get_where_is(&self) -> Result<WhereIsLocation, SessionError>;
fn set_where_is(&self, where_is: WhereIsLocation) -> Result<(), SessionError>;
fn get_should_save(&self) -> Result<bool, SessionError>;
fn set_should_save(&self, should_save: bool) -> Result<(), SessionError>;
fn get_elements(
&self,
range: Range<usize>
) -> Result<Vec<ERef>, SessionError>;
fn get_elements_len(&self) -> Result<usize, SessionError>;
fn get_locations(
&self,
range: Range<usize>
) -> Result<Vec<LRef>, SessionError>;
fn get_locations_len(&self) -> Result<usize, SessionError>;
fn get_location_info(&self) -> Result<LocationInfo, SessionError>;
fn create_element(&self, name: &str) -> Result<ERef, SessionError>;
fn create_location(&self, name: &str) -> Result<LRef, SessionError>;
fn destroy(self) -> Result<LRow, SessionError>;
fn _move(&self, to: &LocationId) -> Result<(), SessionError>;
fn id(&self) -> LocationId;
}