pub struct ObjectMacroReplacement {
pub fields: Vec<MacroReplacementField>,
pub nested: Vec<String>,
}Expand description
The structured content of one object-like field-list macro replacement: the members it declares itself, and the names of the field-list macros it composes in turn. Composition is kept as names rather than resolved here because a nested name’s active replacement is a property of the preprocessor environment at the invocation, not of this replacement.
Fields§
§fields: Vec<MacroReplacementField>§nested: Vec<String>Implementations§
Source§impl ObjectMacroReplacement
impl ObjectMacroReplacement
pub fn is_empty(&self) -> bool
Sourcepub fn intersect(&self, other: &Self) -> Self
pub fn intersect(&self, other: &Self) -> Self
The members and nested names both replacements declare identically.
An include closure can carry mutually exclusive definitions of one
field-list macro (libuv defines UV_HANDLE_PRIVATE_FIELDS in both
uv/unix.h and uv/win.h). Whichever header the compilation actually
took, every member in this intersection is present, and every member
that depends on the branch is left unproven.
Trait Implementations§
Source§impl Clone for ObjectMacroReplacement
impl Clone for ObjectMacroReplacement
Source§fn clone(&self) -> ObjectMacroReplacement
fn clone(&self) -> ObjectMacroReplacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObjectMacroReplacement
impl Debug for ObjectMacroReplacement
Source§impl Default for ObjectMacroReplacement
impl Default for ObjectMacroReplacement
Source§fn default() -> ObjectMacroReplacement
fn default() -> ObjectMacroReplacement
Returns the “default value” for a type. Read more
impl Eq for ObjectMacroReplacement
Source§impl PartialEq for ObjectMacroReplacement
impl PartialEq for ObjectMacroReplacement
impl StructuralPartialEq for ObjectMacroReplacement
Auto Trait Implementations§
impl Freeze for ObjectMacroReplacement
impl RefUnwindSafe for ObjectMacroReplacement
impl Send for ObjectMacroReplacement
impl Sync for ObjectMacroReplacement
impl Unpin for ObjectMacroReplacement
impl UnsafeUnpin for ObjectMacroReplacement
impl UnwindSafe for ObjectMacroReplacement
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more