pub struct ArrayHint { /* private fields */ }
Expand description
Array hints optionally with an element hint.
Implementations
sourceimpl ArrayHint
impl ArrayHint
sourcepub fn with_element<T: Export>() -> Self
pub fn with_element<T: Export>() -> Self
Returns an ArrayHint
with an element hint for type T
, but without a hint for
that type.
sourcepub fn with_element_hint<T: Export>(hint: T::Hint) -> Self
pub fn with_element_hint<T: Export>(hint: T::Hint) -> Self
Returns an ArrayHint
with an element hint for type T
, and a hint for that type.
sourcepub fn with_maybe_element_hint<T: Export>(hint: Option<T::Hint>) -> Self
pub fn with_maybe_element_hint<T: Export>(hint: Option<T::Hint>) -> Self
Returns an ArrayHint
with an element hint for type T
, and optionally a hint
for that type.
sourceimpl ArrayHint
impl ArrayHint
pub fn export_info(self) -> ExportInfo
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArrayHint
impl Send for ArrayHint
impl Sync for ArrayHint
impl Unpin for ArrayHint
impl UnwindSafe for ArrayHint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more