pub struct InstallContext {
pub method: InstallMethod,
pub package_layout: Option<CodexPackageLayout>,
}Fields§
§method: InstallMethod§package_layout: Option<CodexPackageLayout>Implementations§
Source§impl InstallContext
impl InstallContext
pub fn from_exe( is_macos: bool, current_exe: Option<&Path>, method_override: Option<InstallMethod>, ) -> Self
pub fn current() -> &'static Self
pub fn rg_command(&self) -> PathBuf
pub fn bundled_resource( &self, file_name: impl AsRef<Path>, ) -> Option<AbsolutePathBuf>
pub fn bundled_zsh_path(&self) -> Option<AbsolutePathBuf>
pub fn bundled_zsh_bin_dir(&self) -> Option<AbsolutePathBuf>
Trait Implementations§
Source§impl Clone for InstallContext
impl Clone for InstallContext
Source§fn clone(&self) -> InstallContext
fn clone(&self) -> InstallContext
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 InstallContext
impl Debug for InstallContext
impl Eq for InstallContext
Source§impl PartialEq for InstallContext
impl PartialEq for InstallContext
impl StructuralPartialEq for InstallContext
Auto Trait Implementations§
impl Freeze for InstallContext
impl RefUnwindSafe for InstallContext
impl Send for InstallContext
impl Sync for InstallContext
impl Unpin for InstallContext
impl UnsafeUnpin for InstallContext
impl UnwindSafe for InstallContext
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