Struct rtic_syntax::ast::App [−][src]
The #[app]
attribute
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct {{ .. }}
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.args: AppArgs
The arguments to the #[app]
attribute
name: Ident
The name of the const
item on which the #[app]
attribute has been placed
inits: Inits
Vector containing the #[init]
function
idles: Idles
Vector containing the #[idle]
function
monotonics: Map<Monotonic>
Monotonic clocks
late_resources: Map<LateResource>
Late (runtime initialized) resources
resources: Map<Resource>
Early (compile time initialized) resources
user_imports: Vec<ItemUse>
User imports
user_code: Vec<Item>
User code
user_types: Vec<ItemType>
User types
hardware_tasks: Map<HardwareTask>
Hardware tasks: #[task(binds = ..)]
s
software_tasks: Map<SoftwareTask>
Software tasks: #[task]
Implementations
impl App
[src]
pub fn resource(&self, name: &Ident) -> Option<(&LateResource, Option<&Expr>)>
[src]
Returns information about the resource that matches name
pub fn resources<'a>(
&'a self,
analysis: &'a Analysis
) -> impl Iterator<Item = (&'a Ident, &'a LateResource, Option<&'a Expr>, &'a Location)>
[src]
&'a self,
analysis: &'a Analysis
) -> impl Iterator<Item = (&'a Ident, &'a LateResource, Option<&'a Expr>, &'a Location)>
Returns an iterator over all live resources
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl UnwindSafe for App
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,