Enum gdnative_core::export::hint::StringHint
source · [−]pub enum StringHint {
Enum(EnumHint),
File(EnumHint),
GlobalFile(EnumHint),
Dir,
GlobalDir,
Multiline,
Placeholder {
placeholder: String,
},
}
Expand description
Possible hints for strings.
Variants
Enum(EnumHint)
Hints that an integer, float or string property is an enumerated value to pick in a list.
File(EnumHint)
Hints that a string property is a path to a file.
GlobalFile(EnumHint)
Hints that a string property is an absolute path to a file outside the project folder.
Dir
Hints that a string property is a path to a directory.
GlobalDir
Hints that a string property is an absolute path to a directory outside the project folder.
Multiline
Hints that a string property is text with line breaks.
Placeholder
Fields
placeholder: String
Hints that a string property should have a placeholder text visible on its input field, whenever the property is empty.
Implementations
sourceimpl StringHint
impl StringHint
pub fn export_info(self) -> ExportInfo
Trait Implementations
sourceimpl Clone for StringHint
impl Clone for StringHint
sourcefn clone(&self) -> StringHint
fn clone(&self) -> StringHint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for StringHint
impl Send for StringHint
impl Sync for StringHint
impl Unpin for StringHint
impl UnwindSafe for StringHint
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more