#[non_exhaustive]pub struct DiplomatBackendAttr {
pub cfg: DiplomatBackendAttrCfg,
pub meta: Meta,
}
Expand description
A #[diplomat::attr(...)]
attribute
Its contents must start with single element that is a CFG-expression
(so it may contain foo = bar
, foo = "bar"
, ident
, *
atoms,
and all()
, not()
, and any()
combiners), and then be followed by one
or more backend-specific attributes, which can be any valid meta-item
Fields (Non-exhaustive)§
This struct is marked as 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.cfg: DiplomatBackendAttrCfg
§meta: Meta
Trait Implementations§
source§impl Clone for DiplomatBackendAttr
impl Clone for DiplomatBackendAttr
source§fn clone(&self) -> DiplomatBackendAttr
fn clone(&self) -> DiplomatBackendAttr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DiplomatBackendAttr
impl Debug for DiplomatBackendAttr
source§impl Hash for DiplomatBackendAttr
impl Hash for DiplomatBackendAttr
source§impl Parse for DiplomatBackendAttr
impl Parse for DiplomatBackendAttr
Meant to be used with Attribute::parse_args()
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq for DiplomatBackendAttr
impl PartialEq for DiplomatBackendAttr
source§impl Serialize for DiplomatBackendAttr
impl Serialize for DiplomatBackendAttr
impl Eq for DiplomatBackendAttr
impl StructuralPartialEq for DiplomatBackendAttr
Auto Trait Implementations§
impl Freeze for DiplomatBackendAttr
impl RefUnwindSafe for DiplomatBackendAttr
impl !Send for DiplomatBackendAttr
impl !Sync for DiplomatBackendAttr
impl Unpin for DiplomatBackendAttr
impl UnwindSafe for DiplomatBackendAttr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)