pub enum StructName {
None,
User {
name: SmolStr,
node: ObjectType,
},
BuiltinPublic(BuiltinPublicStruct),
BuiltinPrivate(BuiltinPrivateStruct),
}Variants§
None
User
When declared in .slint as struct Foo { }, then the name is “Foo”
BuiltinPublic(BuiltinPublicStruct)
BuiltinPrivate(BuiltinPrivateStruct)
Implementations§
Trait Implementations§
Source§impl Clone for StructName
impl Clone for StructName
Source§fn clone(&self) -> StructName
fn clone(&self) -> StructName
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 CppType for StructName
Available on crate feature cpp only.
impl CppType for StructName
Available on crate feature
cpp only.Source§impl Debug for StructName
impl Debug for StructName
Source§impl From<BuiltinPrivateStruct> for StructName
impl From<BuiltinPrivateStruct> for StructName
Source§fn from(value: BuiltinPrivateStruct) -> Self
fn from(value: BuiltinPrivateStruct) -> Self
Converts to this type from the input type.
Source§impl From<BuiltinPublicStruct> for StructName
impl From<BuiltinPublicStruct> for StructName
Source§fn from(value: BuiltinPublicStruct) -> Self
fn from(value: BuiltinPublicStruct) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StructName
impl PartialEq for StructName
Auto Trait Implementations§
impl Freeze for StructName
impl !RefUnwindSafe for StructName
impl !Send for StructName
impl !Sync for StructName
impl Unpin for StructName
impl UnsafeUnpin for StructName
impl !UnwindSafe for StructName
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> 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