pub struct LiveHookTrait {
pub apply_value_unknown: Option<TokenStream>,
pub apply_value_instance: Option<TokenStream>,
pub skip_apply_animator: Option<TokenStream>,
pub skip_apply: Option<TokenStream>,
pub before_apply: Option<TokenStream>,
pub after_apply: Option<TokenStream>,
pub after_apply_from: Option<TokenStream>,
pub after_new_from_doc: Option<TokenStream>,
pub after_update_from_doc: Option<TokenStream>,
pub after_apply_from_doc: Option<TokenStream>,
pub after_new_before_apply: Option<TokenStream>,
}Expand description
LiveHookTrait是一个trait,它包含了LiveHook的所有方法 它被使用在Widget的实现中
Fields§
§apply_value_unknown: Option<TokenStream>§apply_value_instance: Option<TokenStream>§skip_apply_animator: Option<TokenStream>§skip_apply: Option<TokenStream>§before_apply: Option<TokenStream>§after_apply: Option<TokenStream>§after_apply_from: Option<TokenStream>§after_new_from_doc: Option<TokenStream>§after_update_from_doc: Option<TokenStream>§after_apply_from_doc: Option<TokenStream>§after_new_before_apply: Option<TokenStream>Implementations§
Source§impl LiveHookTrait
impl LiveHookTrait
pub fn to_token_stream<TK>(&self, target: TK) -> TokenStreamwhere
TK: Into<TokenStream>,
Trait Implementations§
Source§impl Clone for LiveHookTrait
impl Clone for LiveHookTrait
Source§fn clone(&self) -> LiveHookTrait
fn clone(&self) -> LiveHookTrait
Returns a duplicate 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 LiveHookTrait
impl Debug for LiveHookTrait
Source§impl Default for LiveHookTrait
impl Default for LiveHookTrait
Source§impl ImplLiveHook for LiveHookTrait
impl ImplLiveHook for LiveHookTrait
fn apply_value_unknown_tk(&self) -> Option<TokenStream>
fn apply_value_instance_tk(&self) -> Option<TokenStream>
fn skip_apply_tk(&self) -> Option<TokenStream>
fn before_apply_tk(&self) -> Option<TokenStream>
fn after_apply_tk(&self) -> Option<TokenStream>
fn after_apply_from_tk(&self) -> Option<TokenStream>
fn after_new_from_doc_tk(&self) -> Option<TokenStream>
fn after_update_from_doc_tk(&self) -> Option<TokenStream>
fn after_apply_from_doc_tk(&self) -> Option<TokenStream>
fn after_new_before_apply_tk(&self) -> Option<TokenStream>
fn skip_apply_animator_tk(&self) -> Option<TokenStream>
fn push(&mut self, tk: TokenStream, ty: LiveHookType)
Auto Trait Implementations§
impl Freeze for LiveHookTrait
impl RefUnwindSafe for LiveHookTrait
impl !Send for LiveHookTrait
impl !Sync for LiveHookTrait
impl Unpin for LiveHookTrait
impl UnsafeUnpin for LiveHookTrait
impl UnwindSafe for LiveHookTrait
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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