Skip to main content

MethodListing

Struct MethodListing 

Source
pub struct MethodListing<'lister>(/* private fields */);

Implementations§

Source§

impl MethodListing<'_>

Source

pub fn next_len(&self) -> Option<NonZeroUsize>

Returns the length, in bytes, of the name of the next method in the list of methods.

If there is no next entry, None is returned.

§Panics

This function panics if the underlying syscall fails, because the only reasons it could fail should be impossible due to the type system.

Source

pub fn next<'buffer>( &mut self, buffer: &'buffer mut [u8], ) -> Result<Option<(&'buffer mut str, MethodAttributes)>>

Returns the next method in the list of methods.

The buffer parameter identifies where to store the next method name.

If there is a next method, its name is written to buffer, a string slice referring to the name along with the attributes are returned, and the iteration is advanced. If not, None is returned.

§Errors
  • BufferTooShort is returned if buffer is not large enough to hold the method name.

On error, the iteration does not advance.

Auto Trait Implementations§

§

impl<'lister> !UnwindSafe for MethodListing<'lister>

§

impl<'lister> Freeze for MethodListing<'lister>

§

impl<'lister> RefUnwindSafe for MethodListing<'lister>

§

impl<'lister> Send for MethodListing<'lister>

§

impl<'lister> Sync for MethodListing<'lister>

§

impl<'lister> Unpin for MethodListing<'lister>

§

impl<'lister> UnsafeUnpin for MethodListing<'lister>

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, 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.