Lines Matching defs:ident
28 ident: Ident,
39 ident: Ident,
43 ident: Ident,
55 fn ident(&self) -> Option<&Ident> {
57 Self::Value { ident, .. } | Self::Init { ident, .. } => Some(ident),
138 Some(This { ident, .. }) => quote! {
141 let #ident = unsafe { ::core::ptr::NonNull::new_unchecked(slot) };
197 && segments[0].ident == "Zeroable"
199 && segments[1].ident == "init_zeroed"
232 let ident = match kind {
233 InitializerKind::Value { ident, .. } => ident,
234 InitializerKind::Init { ident, .. } => ident,
249 // - `make_field_check` checks that `&raw mut (*slot).#ident` is properly aligned.
250 // - `make_field_check` prevents `#ident` from being used twice, therefore
251 // `(*slot).#ident` is exclusively accessed and has not been initialized.
252 (unsafe { #data.#ident(#slot) })
258 // - `&raw mut (*slot).#ident` is valid.
259 // - `make_field_check` checks that `&raw mut (*slot).#ident` is properly aligned.
260 // - `make_field_check` prevents `#ident` from being used twice, therefore
261 // `(*slot).#ident` is exclusively accessed and has not been initialized.
264 &raw mut (*#slot).#ident
271 let guard = format_ident!("__{ident}_guard", span = Span::mixed_site());
274 InitializerKind::Value { ident, value } => {
278 .unwrap_or_else(|| quote!(#ident));
302 let #ident = #guard.let_binding();
327 .filter_map(|f| f.kind.ident().map(|_| &f.attrs))
329 let field_name: Vec<_> = fields.iter().filter_map(|f| f.kind.ident()).collect();
432 ident: input.parse()?,
458 let ident = input.parse()?;
462 ident,
468 ident,
472 Ok(Self::Value { ident, value: None })