pub struct Env<'a> {
pub game: Option<&'a ClassIndex>,
pub macros: Option<&'a dyn ProcMacros>,
pub files: Option<&'a dyn ModFiles>,
pub to_server: bool,
pub content: Option<&'a [(String, String)]>,
pub others: &'a [&'a [Decl]],
}Expand description
What a source is checked in: the game’s classes (a .yns’s, of one
version), the build’s procedural macros.
Fields§
§game: Option<&'a ClassIndex>§macros: Option<&'a dyn ProcMacros>§files: Option<&'a dyn ModFiles>The mod’s files, for include_str!.
to_server: boolThe mod says it sends to the server (yog.toml: [network] to_server).
content: Option<&'a [(String, String)]>The mod’s content files, each (kind, id) — what its content
declarations bind to; None: not known (not checked).
others: &'a [&'a [Decl]]The mod’s other sources’ declarations (declarations): its
project, whose types, extensions and events this source reaches as
a C# project’s files reach each other’s.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Env<'a>
impl<'a> !Send for Env<'a>
impl<'a> !Sync for Env<'a>
impl<'a> !UnwindSafe for Env<'a>
impl<'a> Freeze for Env<'a>
impl<'a> Unpin for Env<'a>
impl<'a> UnsafeUnpin for Env<'a>
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