pub struct PropsKey { /* private fields */ }Expand description
Implementations§
Source§impl PropsKey
impl PropsKey
pub fn new(name: &str, is_style: bool, ty: PropertyKeyType) -> Self
Sourcepub fn new_tag_normal(name: &str) -> Self
pub fn new_tag_normal(name: &str) -> Self
§new props key
new a props key in template or script tag which is type normal
pub fn new_bind(name: &str, is_style: bool) -> Self
pub fn new_fn(name: &str, is_style: bool) -> Self
pub fn name(&self) -> &str
pub fn ty(&self) -> &PropertyKeyType
pub fn is_bind(&self) -> bool
pub fn is_normal(&self) -> bool
pub fn is_fn(&self) -> bool
Sourcepub fn is_builtin(&self) -> bool
pub fn is_builtin(&self) -> bool
§check current props key is builtin or not
pub fn from_value_with(v: &Value, name: &str, is_style: bool) -> Self
Trait Implementations§
impl Eq for PropsKey
impl StructuralPartialEq for PropsKey
Auto Trait Implementations§
impl Freeze for PropsKey
impl RefUnwindSafe for PropsKey
impl Send for PropsKey
impl Sync for PropsKey
impl Unpin for PropsKey
impl UnwindSafe for PropsKey
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§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.