pub struct BevyManifest { /* private fields */ }Expand description
The path to the Cargo.toml file for the Bevy project.
Implementations§
Source§impl BevyManifest
impl BevyManifest
Calls f with a global shared instance of the BevyManifest struct.
Sourcepub fn maybe_get_path(&self, name: &str) -> Option<Path>
pub fn maybe_get_path(&self, name: &str) -> Option<Path>
Sourcepub fn try_parse_str<T: Parse>(path: &str) -> Option<T>
pub fn try_parse_str<T: Parse>(path: &str) -> Option<T>
Attempt to parse the provided path as a syntax tree node
Sourcepub fn parse_str<T: Parse>(path: &str) -> T
pub fn parse_str<T: Parse>(path: &str) -> T
Attempt to parse provided path as a syntax tree node.
§Panics
Will panic if the path is not able to be parsed. For a non-panicking option, see try_parse_str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BevyManifest
impl RefUnwindSafe for BevyManifest
impl Send for BevyManifest
impl Sync for BevyManifest
impl Unpin for BevyManifest
impl UnsafeUnpin for BevyManifest
impl UnwindSafe for BevyManifest
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