Struct FlexibleArray

Source
#[repr(transparent)]
pub struct FlexibleArray<I, T: FlexibleArrayHeader = usize> { pub header: T, /* private fields */ }

Fields§

§header: T

Implementations§

Source§

impl FlexibleArray<u64, JsBigintHeader>

Source

pub fn header_len(&self) -> isize

Source§

impl FlexibleArray<u64, JsBigintHeader>

Source

pub fn compare(&self, other: &Self) -> Ordering

Source

pub fn get_last_bit(&self) -> u64

Source§

impl FlexibleArray<u64, JsBigintHeader>

Source

pub fn sign(&self) -> Sign

Source§

impl<I, T: FlexibleArrayHeader> FlexibleArray<I, T>

Source

pub fn items(&self) -> &[I]

Source

pub fn items_mut(&mut self) -> &mut [I]

Source

pub const fn flexible_size(len: usize) -> usize

Trait Implementations§

Source§

impl<I: Debug, T: Debug + FlexibleArrayHeader> Debug for FlexibleArray<I, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: FlexibleArrayHeader, I> Object for FlexibleArray<I, T>

Auto Trait Implementations§

§

impl<I, T> Freeze for FlexibleArray<I, T>
where T: Freeze,

§

impl<I, T> RefUnwindSafe for FlexibleArray<I, T>

§

impl<I, T> Send for FlexibleArray<I, T>
where T: Send, I: Send,

§

impl<I, T> Sync for FlexibleArray<I, T>
where T: Sync, I: Sync,

§

impl<I, T> Unpin for FlexibleArray<I, T>
where T: Unpin, I: Unpin,

§

impl<I, T> UnwindSafe for FlexibleArray<I, T>
where T: UnwindSafe, I: 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> RefMut for T

Source§

unsafe fn to_mut_ptr(&mut self) -> *mut Self

Source§

fn modify(&mut self, f: impl FnOnce(Self) -> Self)
where Self: Sized,

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.