pub struct ProgramContext {
name: Symbol,
full_name: String,
location: Location,
network: Option<NetworkName>,
path: Option<PathBuf>,
full_path: Option<PathBuf>,
compiled_file_path: Option<PathBuf>,
dependencies: Option<Vec<Symbol>>,
checksum: Option<String>,
stub: Option<Stub>,
post_order: Option<IndexSet<Symbol>>,
}
Fields§
§name: Symbol
§full_name: String
§location: Location
§network: Option<NetworkName>
§path: Option<PathBuf>
§full_path: Option<PathBuf>
§compiled_file_path: Option<PathBuf>
§dependencies: Option<Vec<Symbol>>
§checksum: Option<String>
§stub: Option<Stub>
§post_order: Option<IndexSet<Symbol>>
Implementations§
Source§impl ProgramContext
impl ProgramContext
pub fn new_main( name: Symbol, path: PathBuf, dependencies: Vec<Dependency>, ) -> Self
pub fn name(&self) -> &Symbol
pub fn full_name(&self) -> &String
pub fn network(&self) -> &NetworkName
pub fn location(&self) -> &Location
pub fn path(&self) -> &PathBuf
pub fn full_path(&self) -> &PathBuf
pub fn add_full_path(&mut self, full_path: &Path)
pub fn compiled_file_path(&self) -> &PathBuf
pub fn add_compiled_file_path(&mut self, path: &Path)
pub fn checksum(&self) -> &String
pub fn add_checksum(&mut self)
pub fn add_stub(&mut self, stub: Stub) -> bool
pub fn stub(&self) -> &Stub
pub fn dependencies(&self) -> Vec<Symbol>
pub fn add_dependencies(&mut self, dependencies: Vec<Symbol>)
pub fn post_order(&self) -> &IndexSet<Symbol>
pub fn add_post_order(&mut self, post_order: IndexSet<Symbol>)
Trait Implementations§
Source§impl Clone for ProgramContext
impl Clone for ProgramContext
Source§fn clone(&self) -> ProgramContext
fn clone(&self) -> ProgramContext
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 ProgramContext
impl Debug for ProgramContext
Source§impl From<&ProgramContext> for LockFileEntry
impl From<&ProgramContext> for LockFileEntry
Source§fn from(context: &ProgramContext) -> Self
fn from(context: &ProgramContext) -> Self
Converts to this type from the input type.
Source§impl From<Dependency> for ProgramContext
impl From<Dependency> for ProgramContext
Source§fn from(dependency: Dependency) -> Self
fn from(dependency: Dependency) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProgramContext
impl RefUnwindSafe for ProgramContext
impl Send for ProgramContext
impl Sync for ProgramContext
impl Unpin for ProgramContext
impl UnwindSafe for ProgramContext
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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