pub struct MethodInfo {
pub name: &'static str,
pub args: &'static [PropKind],
pub returns: Option<PropKind>,
pub params: &'static [&'static str],
pub arg_types: &'static [&'static str],
pub returns_type: &'static str,
}Expand description
Um método de Component::invoke: o nome, o tipo de cada argumento e o do resultado
(None: não devolve nada que interesse).
Fields§
§name: &'static str§args: &'static [PropKind]§returns: Option<PropKind>§params: &'static [&'static str]O nome de cada argumento (path), que o acesso tipado gerado usa nas assinaturas;
vazio: sem nome (o gerado numera, a1, a2).
arg_types: &'static [&'static str]O tipo Rust de cada argumento e do resultado que são enum (ScreenOrientation): o acesso
tipado usa o mesmo nome em todas as linguagens. Vazio nos outros.
returns_type: &'static strImplementations§
Source§impl MethodInfo
impl MethodInfo
Trait Implementations§
Source§impl Clone for MethodInfo
impl Clone for MethodInfo
impl Copy for MethodInfo
Source§impl Debug for MethodInfo
impl Debug for MethodInfo
Source§impl PartialEq for MethodInfo
impl PartialEq for MethodInfo
impl StructuralPartialEq for MethodInfo
Auto Trait Implementations§
impl Forget for MethodInfo
impl Freeze for MethodInfo
impl Move for MethodInfo
impl RefUnwindSafe for MethodInfo
impl Send for MethodInfo
impl Sync for MethodInfo
impl Unpin for MethodInfo
impl UnsafeUnpin for MethodInfo
impl UnwindSafe for MethodInfo
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