pub struct Lockfile {
pub unity_version: String,
pub unity_path: String,
pub lang_version: String,
pub analyzers: Vec<String>,
pub refs: BTreeMap<RefCategory, Vec<DllRef>>,
pub defines: Vec<String>,
pub defines_scripting: Vec<String>,
}Fields§
§unity_version: String§unity_path: String§lang_version: String§analyzers: Vec<String>§refs: BTreeMap<RefCategory, Vec<DllRef>>§defines: Vec<String>§defines_scripting: Vec<String>Implementations§
Source§impl Lockfile
impl Lockfile
Sourcepub fn empty(
unity_version: impl Into<String>,
unity_path: impl Into<String>,
) -> Self
pub fn empty( unity_version: impl Into<String>, unity_path: impl Into<String>, ) -> Self
Build an empty lockfile shell with all RefCategory keys populated to
empty Vecs. Useful for tests and for downstream crates that want to
programmatically construct a Lockfile without spelling out every category.
pub fn total_ref_count(&self) -> usize
pub fn refs_for(&self, cat: RefCategory) -> &[DllRef]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lockfile
impl RefUnwindSafe for Lockfile
impl Send for Lockfile
impl Sync for Lockfile
impl Unpin for Lockfile
impl UnsafeUnpin for Lockfile
impl UnwindSafe for Lockfile
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<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