Lines Matching refs:ident
28 ident: Ident, field
39 ident: Ident,
43 ident: Ident,
55 fn ident(&self) -> Option<&Ident> {
57 Self::Value { ident, .. } | Self::Init { ident, .. } => Some(ident),
140 Some(This { ident, .. }) => quote! {
143 let #ident = unsafe { ::core::ptr::NonNull::new_unchecked(slot) };
201 && segments[0].ident == "Zeroable"
203 && segments[1].ident == "init_zeroed"
236 InitializerKind::Value { ident, value } => {
237 let mut value_ident = ident.clone();
245 let write = quote_spanned!(ident.span()=> ::core::ptr::write);
254 unsafe { #data.#project_ident(&mut (*#slot).#ident) }
259 unsafe { &mut (*#slot).#ident }
267 unsafe { #write(::core::ptr::addr_of_mut!((*#slot).#ident), #value_ident) };
271 let #ident = #accessor;
274 InitializerKind::Init { ident, value, .. } => {
290 … unsafe { #data.#ident(::core::ptr::addr_of_mut!((*#slot).#ident), #init)? };
294 unsafe { #data.#project_ident(&mut (*#slot).#ident) }
305 ::core::ptr::addr_of_mut!((*#slot).#ident),
311 unsafe { &mut (*#slot).#ident }
323 let #ident = #accessor;
333 if let Some(ident) = kind.ident() {
345 ::core::ptr::addr_of_mut!((*slot).#ident)
372 .filter_map(|f| f.kind.ident().map(|_| &f.attrs));
373 let field_name = fields.iter().filter_map(|f| f.kind.ident());
477 ident: input.parse()?,
503 let ident = input.parse()?; localVariable
507 ident,
513 ident,
517 Ok(Self::Value { ident, value: None })