pub struct SwiftView {
pub module: String,
pub name: String,
pub params: Vec<SwiftParam>,
pub source: String,
}Expand description
One exported view: swiftui("<module>.<name>") on the Rust side, class
DayView_<module>_<name> on the Swift side.
Fields§
§module: StringThe SwiftPM target (module) name — the Sources/<Module> directory.
name: StringThe struct name.
params: Vec<SwiftParam>The first public init’s parameters, in declaration order.
source: StringPackage-relative source path (doc comments in the generated code).
Implementations§
Source§impl SwiftView
impl SwiftView
Sourcepub fn piece_name(&self) -> String
pub fn piece_name(&self) -> String
The canonical piece name (swiftui(...) argument): Module.View.
Sourcepub fn class_name(&self) -> String
pub fn class_name(&self) -> String
The Objective-C class name of the generated provider: DayView_Module_View.
Trait Implementations§
impl Eq for SwiftView
impl StructuralPartialEq for SwiftView
Auto Trait Implementations§
impl Freeze for SwiftView
impl RefUnwindSafe for SwiftView
impl Send for SwiftView
impl Sync for SwiftView
impl Unpin for SwiftView
impl UnsafeUnpin for SwiftView
impl UnwindSafe for SwiftView
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