pub struct ResolvedModelTwoWayBinding<'a> {
pub parent_level: usize,
pub body_sub_component: SubComponentIdx,
pub data_prop: PropertyIdx,
pub data_prop_ty: &'a Type,
pub index_prop: PropertyIdx,
pub parent_sub_component: SubComponentIdx,
pub repeater_index: RepeatedElementIdx,
}Expand description
Resolved view of a model two-way binding, used by code generators to avoid re-deriving the parent walk and the data/index/repeater references.
Fields§
§parent_level: usizeNumber of parent hops up to the body sub-component.
body_sub_component: SubComponentIdx§data_prop: PropertyIdx§data_prop_ty: &'a TypeType of data_prop, i.e. the starting type of TwoWayBinding::field_access.
index_prop: PropertyIdx§parent_sub_component: SubComponentIdx§repeater_index: RepeatedElementIdxAuto Trait Implementations§
impl<'a> !RefUnwindSafe for ResolvedModelTwoWayBinding<'a>
impl<'a> !Send for ResolvedModelTwoWayBinding<'a>
impl<'a> !Sync for ResolvedModelTwoWayBinding<'a>
impl<'a> !UnwindSafe for ResolvedModelTwoWayBinding<'a>
impl<'a> Freeze for ResolvedModelTwoWayBinding<'a>
impl<'a> Unpin for ResolvedModelTwoWayBinding<'a>
impl<'a> UnsafeUnpin for ResolvedModelTwoWayBinding<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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