pub struct ExternalLibrary { /* private fields */ }
Expand description
An ExternalLibrary is an abstraction for a library that is optionally backed by a ProjectFile.
Implementations§
source§impl ExternalLibrary
impl ExternalLibrary
sourcepub fn backing_file(&self) -> Option<Ref<ProjectFile>>
pub fn backing_file(&self) -> Option<Ref<ProjectFile>>
Get the file backing this external library
sourcepub fn set_backing_file(&self, file: Option<&ProjectFile>)
pub fn set_backing_file(&self, file: Option<&ProjectFile>)
Set the file backing this external library
Trait Implementations§
source§impl CoreArrayProvider for ExternalLibrary
impl CoreArrayProvider for ExternalLibrary
source§impl Debug for ExternalLibrary
impl Debug for ExternalLibrary
source§impl ToOwned for ExternalLibrary
impl ToOwned for ExternalLibrary
source§type Owned = Ref<ExternalLibrary>
type Owned = Ref<ExternalLibrary>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl Freeze for ExternalLibrary
impl RefUnwindSafe for ExternalLibrary
impl !Send for ExternalLibrary
impl !Sync for ExternalLibrary
impl Unpin for ExternalLibrary
impl UnwindSafe for ExternalLibrary
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