pub struct VNode {
pub handle: u64,
}Fields§
§handle: u64Implementations§
Source§impl VNode
impl VNode
Create a new button element
Sourcepub fn add_attr(self, name: String, value: String) -> VNode
pub fn add_attr(self, name: String, value: String) -> VNode
Add an attribute (takes owned Strings)
Sourcepub fn set_placeholder(self, text: String) -> VNode
pub fn set_placeholder(self, text: String) -> VNode
Set placeholder (for inputs)
Sourcepub fn set_disabled(self, d: bool) -> VNode
pub fn set_disabled(self, d: bool) -> VNode
Set disabled attribute
Sourcepub fn raw_handle(&self) -> u64
pub fn raw_handle(&self) -> u64
Get the raw handle (for interop with Rust code)
Trait Implementations§
impl Copy for VNode
impl Eq for VNode
impl StructuralPartialEq for VNode
Auto Trait Implementations§
impl Freeze for VNode
impl RefUnwindSafe for VNode
impl Send for VNode
impl Sync for VNode
impl Unpin for VNode
impl UnwindSafe for VNode
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