Struct gdnative_core::export::hint::ArrayHint
source · 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.