Struct irust_api::GlobalVariables
source · pub struct GlobalVariables {
pub operation_number: usize,
pub prompt_position: (usize, usize),
pub cursor_position: (usize, usize),
pub prompt_len: usize,
pub pid: u32,
pub is_ra_suggestion_active: bool,
/* private fields */
}
Fields§
§operation_number: usize
§prompt_position: (usize, usize)
§cursor_position: (usize, usize)
§prompt_len: usize
§pid: u32
§is_ra_suggestion_active: bool
Implementations§
source§impl GlobalVariables
impl GlobalVariables
pub fn new() -> Self
pub fn update_cwd(&mut self, cwd: PathBuf)
pub fn get_cwd(&self) -> PathBuf
pub fn get_pwd(&self) -> PathBuf
pub fn set_last_loaded_coded_path(&mut self, path: PathBuf)
pub fn get_last_loaded_coded_path(&self) -> Option<PathBuf>
pub fn get_last_output(&self) -> Option<&String>
pub fn set_last_output(&mut self, out: String)
Trait Implementations§
source§impl Clone for GlobalVariables
impl Clone for GlobalVariables
source§fn clone(&self) -> GlobalVariables
fn clone(&self) -> GlobalVariables
Returns a copy of the value. Read more
1.0.0 · 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 GlobalVariables
impl Debug for GlobalVariables
source§impl Default for GlobalVariables
impl Default for GlobalVariables
source§impl<'de> Deserialize<'de> for GlobalVariables
impl<'de> Deserialize<'de> for GlobalVariables
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalVariables
impl RefUnwindSafe for GlobalVariables
impl Send for GlobalVariables
impl Sync for GlobalVariables
impl Unpin for GlobalVariables
impl UnwindSafe for GlobalVariables
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