Struct i_slint_compiler::object_tree::PropertyDeclaration
source · pub struct PropertyDeclaration {
pub property_type: Type,
pub node: Option<SyntaxNode>,
pub expose_in_public_api: bool,
pub is_alias: Option<NamedReference>,
pub visibility: PropertyVisibility,
pub pure: Option<bool>,
}
Fields§
§property_type: Type
§node: Option<SyntaxNode>
§expose_in_public_api: bool
Tells if getter and setter will be added to expose in the native language API
is_alias: Option<NamedReference>
Public API property exposed as an alias: it shouldn’t be generated but instead forward to the alias.
visibility: PropertyVisibility
§pure: Option<bool>
For function or callback: whether it is declared as pure
(None for private function for which this has to be deduced)
Implementations§
source§impl PropertyDeclaration
impl PropertyDeclaration
pub fn type_node(&self) -> Option<SyntaxNode>
Trait Implementations§
source§impl Clone for PropertyDeclaration
impl Clone for PropertyDeclaration
source§fn clone(&self) -> PropertyDeclaration
fn clone(&self) -> PropertyDeclaration
Returns a copy 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 PropertyDeclaration
impl Debug for PropertyDeclaration
source§impl Default for PropertyDeclaration
impl Default for PropertyDeclaration
source§fn default() -> PropertyDeclaration
fn default() -> PropertyDeclaration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PropertyDeclaration
impl !Send for PropertyDeclaration
impl !Sync for PropertyDeclaration
impl Unpin for PropertyDeclaration
impl !UnwindSafe for PropertyDeclaration
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