pub struct ArrayHint { /* private fields */ }
Expand description
Array hints optionally with an element hint.
Implementations§
Source§impl 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.
Source§impl ArrayHint
impl ArrayHint
pub fn export_info(self) -> ExportInfo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArrayHint
impl RefUnwindSafe for ArrayHint
impl Send for ArrayHint
impl Sync for ArrayHint
impl Unpin for ArrayHint
impl UnwindSafe for ArrayHint
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