pub struct ComponentCommon {
pub id: ComponentId,
pub accessibility: Option<AccessibilityAttributes>,
pub weight: Option<f64>,
}Expand description
组件通用属性
Fields§
§id: ComponentId组件唯一标识符
accessibility: Option<AccessibilityAttributes>无障碍属性
weight: Option<f64>布局权重(仅在 Row/Column 子组件中有效)
Trait Implementations§
Source§impl Clone for ComponentCommon
impl Clone for ComponentCommon
Source§fn clone(&self) -> ComponentCommon
fn clone(&self) -> ComponentCommon
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 ComponentCommon
impl Debug for ComponentCommon
Source§impl Default for ComponentCommon
impl Default for ComponentCommon
Source§fn default() -> ComponentCommon
fn default() -> ComponentCommon
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComponentCommon
impl<'de> Deserialize<'de> for ComponentCommon
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComponentCommon
impl PartialEq for ComponentCommon
Source§impl Serialize for ComponentCommon
impl Serialize for ComponentCommon
impl StructuralPartialEq for ComponentCommon
Auto Trait Implementations§
impl Freeze for ComponentCommon
impl RefUnwindSafe for ComponentCommon
impl Send for ComponentCommon
impl Sync for ComponentCommon
impl Unpin for ComponentCommon
impl UnsafeUnpin for ComponentCommon
impl UnwindSafe for ComponentCommon
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