StaticMethod

Struct StaticMethod 

Source
pub struct StaticMethod<C, F> { /* private fields */ }
Expand description

Static high-level wrapper of static Java class methods

See the module documentation for examples.

Implementations§

Source§

impl<C, F> StaticMethod<C, F>
where F: Type, C: Class,

Source

pub const fn new(name: &'static str) -> Self

Create the static method lens

Source§

impl<C, FR> StaticMethod<C, fn() -> FR>
where C: Class, FR: Object,

Source

pub fn invoke(&self, e: &mut Env<'_>) -> FR

Invoke the static method

Source§

impl<C, FA, FR> StaticMethod<C, fn(FA) -> FR>
where C: Class, FA: Object, FR: Object,

Source

pub fn invoke(&self, e: &mut Env<'_>, fa: FA) -> FR

Invoke the static method

Source§

impl<C, FA, FB, FR> StaticMethod<C, fn(FA, FB) -> FR>
where C: Class, FA: Object, FB: Object, FR: Object,

Source

pub fn invoke(&self, e: &mut Env<'_>, fa: FA, fb: FB) -> FR

Invoke the static method

Source§

impl<C, FA, FB, FC, FR> StaticMethod<C, fn(FA, FB, FC) -> FR>
where C: Class, FA: Object, FB: Object, FC: Object, FR: Object,

Source

pub fn invoke(&self, e: &mut Env<'_>, fa: FA, fb: FB, fc: FC) -> FR

Invoke the static method

Source§

impl<C, FA, FB, FC, FD, FR> StaticMethod<C, fn(FA, FB, FC, FD) -> FR>
where C: Class, FA: Object, FB: Object, FC: Object, FD: Object, FR: Object,

Source

pub fn invoke(&self, e: &mut Env<'_>, fa: FA, fb: FB, fc: FC, fd: FD) -> FR

Invoke the static method

Source§

impl<C, FA, FB, FC, FD, FE, FR> StaticMethod<C, fn(FA, FB, FC, FD, FE) -> FR>
where C: Class, FA: Object, FB: Object, FC: Object, FD: Object, FE: Object, FR: Object,

Source

pub fn invoke( &self, e: &mut Env<'_>, fa: FA, fb: FB, fc: FC, fd: FD, fe: FE, ) -> FR

Invoke the static method

Source§

impl<C, FR> StaticMethod<C, fn() -> Result<FR, Throwable>>
where C: Class, FR: Class,

Source

pub fn invoke(&self, e: &mut Env<'_>) -> Result<FR, Throwable>

Invoke the static method

Source§

impl<C, FA, FR> StaticMethod<C, fn(FA) -> Result<FR, Throwable>>
where C: Class, FA: Object, FR: Class,

Source

pub fn invoke(&self, e: &mut Env<'_>, fa: FA) -> Result<FR, Throwable>

Invoke the static method

Source§

impl<C, FA, FB, FR> StaticMethod<C, fn(FA, FB) -> Result<FR, Throwable>>
where C: Class, FA: Object, FB: Object, FR: Class,

Source

pub fn invoke(&self, e: &mut Env<'_>, fa: FA, fb: FB) -> Result<FR, Throwable>

Invoke the static method

Source§

impl<C, FA, FB, FC, FR> StaticMethod<C, fn(FA, FB, FC) -> Result<FR, Throwable>>
where C: Class, FA: Object, FB: Object, FC: Object, FR: Class,

Source

pub fn invoke( &self, e: &mut Env<'_>, fa: FA, fb: FB, fc: FC, ) -> Result<FR, Throwable>

Invoke the static method

Source§

impl<C, FA, FB, FC, FD, FR> StaticMethod<C, fn(FA, FB, FC, FD) -> Result<FR, Throwable>>
where C: Class, FA: Object, FB: Object, FC: Object, FD: Object, FR: Class,

Source

pub fn invoke( &self, e: &mut Env<'_>, fa: FA, fb: FB, fc: FC, fd: FD, ) -> Result<FR, Throwable>

Invoke the static method

Source§

impl<C, FA, FB, FC, FD, FE, FR> StaticMethod<C, fn(FA, FB, FC, FD, FE) -> Result<FR, Throwable>>
where C: Class, FA: Object, FB: Object, FC: Object, FD: Object, FE: Object, FR: Class,

Source

pub fn invoke( &self, e: &mut Env<'_>, fa: FA, fb: FB, fc: FC, fd: FD, fe: FE, ) -> Result<FR, Throwable>

Invoke the static method

Auto Trait Implementations§

§

impl<C, F> !Freeze for StaticMethod<C, F>

§

impl<C, F> RefUnwindSafe for StaticMethod<C, F>

§

impl<C, F> Send for StaticMethod<C, F>
where C: Send, F: Send,

§

impl<C, F> Sync for StaticMethod<C, F>
where C: Sync, F: Sync,

§

impl<C, F> Unpin for StaticMethod<C, F>
where C: Unpin, F: Unpin,

§

impl<C, F> UnwindSafe for StaticMethod<C, F>
where C: UnwindSafe, F: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<F, A, TF, T> Sequence<F, A, TF> for T

Source§

fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>
where Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>, Ap: HKT1, <Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>, <Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>, <Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>, F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V