pub struct BridgeFieldMatch<'a> {
pub param_index: usize,
pub param_name: String,
pub options_type: String,
pub param_is_optional: bool,
pub field_name: String,
pub field: &'a FieldDef,
pub bridge: &'a TraitBridgeConfig,
}Expand description
Match info for a trait bridge whose handle lives as a struct field
(bind_via = "options_field").
Fields§
§param_index: usizeIndex of the function parameter that carries the owning struct.
param_name: StringName of the parameter (e.g., "options").
options_type: StringIR type name of the parameter, with any Option<> wrapper unwrapped.
param_is_optional: boolTrue if the param is Option<TypeName> rather than TypeName.
field_name: StringName of the field on options_type that holds the bridge handle.
field: &'a FieldDefThe matching field definition (carries the field’s TypeRef).
bridge: &'a TraitBridgeConfigThe bridge configuration that produced the match.
Trait Implementations§
Source§impl<'a> Clone for BridgeFieldMatch<'a>
impl<'a> Clone for BridgeFieldMatch<'a>
Source§fn clone(&self) -> BridgeFieldMatch<'a>
fn clone(&self) -> BridgeFieldMatch<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for BridgeFieldMatch<'a>
impl<'a> RefUnwindSafe for BridgeFieldMatch<'a>
impl<'a> Send for BridgeFieldMatch<'a>
impl<'a> Sync for BridgeFieldMatch<'a>
impl<'a> Unpin for BridgeFieldMatch<'a>
impl<'a> UnsafeUnpin for BridgeFieldMatch<'a>
impl<'a> UnwindSafe for BridgeFieldMatch<'a>
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