pub struct UnityInstallation { /* private fields */ }
Implementations§
Source§impl UnityInstallation
impl UnityInstallation
pub fn new<P: AsRef<Path>>(path: P) -> Result<UnityInstallation, UnityHubError>
pub fn version(&self) -> &Version
pub fn into_version(self) -> Version
pub fn version_owned(&self) -> Version
pub fn path(&self) -> &PathBuf
pub fn location(&self) -> PathBuf
pub fn exec_path(&self) -> PathBuf
Trait Implementations§
Source§impl Clone for UnityInstallation
impl Clone for UnityInstallation
Source§fn clone(&self) -> UnityInstallation
fn clone(&self) -> UnityInstallation
Returns a duplicate 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 UnityInstallation
impl Debug for UnityInstallation
Source§impl Display for UnityInstallation
impl Display for UnityInstallation
Source§impl<I> FromInstallation<I> for UnityInstallation
impl<I> FromInstallation<I> for UnityInstallation
fn from_installation(value: I) -> UnityInstallation
Source§impl FromIterator<UnityInstallation> for Installations
impl FromIterator<UnityInstallation> for Installations
Source§fn from_iter<I: IntoIterator<Item = UnityInstallation>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = UnityInstallation>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl Installation for UnityInstallation
impl Installation for UnityInstallation
Source§impl Ord for UnityInstallation
impl Ord for UnityInstallation
Source§fn cmp(&self, other: &UnityInstallation) -> Ordering
fn cmp(&self, other: &UnityInstallation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnityInstallation
impl PartialEq for UnityInstallation
Source§impl PartialOrd for UnityInstallation
impl PartialOrd for UnityInstallation
Source§impl TryFrom<UnityInstallation> for InstalledModules
impl TryFrom<UnityInstallation> for InstalledModules
Source§type Error = UnityError
type Error = UnityError
The type returned in the event of a conversion error.
impl Eq for UnityInstallation
impl StructuralPartialEq for UnityInstallation
Auto Trait Implementations§
impl Freeze for UnityInstallation
impl RefUnwindSafe for UnityInstallation
impl Send for UnityInstallation
impl Sync for UnityInstallation
impl Unpin for UnityInstallation
impl UnwindSafe for UnityInstallation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more