pub struct Project<'a> {
pub macros: Option<&'a MacroLibrary>,
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’s mod brings to its check: the build’s procedural macros,
what its yog.toml says it does (sending to the server).
Fields§
§macros: Option<&'a MacroLibrary>§files: Option<&'a dyn ModFiles>The mod’s files its sources include.
to_server: bool§content: Option<&'a [(String, String)]>The mod’s content files, each (kind, id): what its content declarations bind to.
others: &'a [&'a [Decl]]The mod’s other sources’ declarations: the types it reaches.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Project<'a>
impl<'a> !Send for Project<'a>
impl<'a> !Sync for Project<'a>
impl<'a> !UnwindSafe for Project<'a>
impl<'a> Freeze for Project<'a>
impl<'a> Unpin for Project<'a>
impl<'a> UnsafeUnpin for Project<'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