Struct gdnative_visual_script::common::GodotString [−]
pub struct GodotString(_);
Godot's reference-counted string type.
Methods
impl GodotString
impl GodotStringpub fn new() -> GodotString
pub fn new() -> GodotStringpub fn from_str<S>(s: S) -> GodotString where
S: AsRef<str>,
pub fn from_str<S>(s: S) -> GodotString where
S: AsRef<str>, pub fn len(&self) -> usize
pub fn len(&self) -> usizepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolpub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> boolpub fn is_valid_float(&self) -> bool
pub fn is_valid_float(&self) -> boolpub fn is_valid_html_color(&self) -> bool
pub fn is_valid_html_color(&self) -> boolpub fn is_valid_identifier(&self) -> bool
pub fn is_valid_identifier(&self) -> boolpub fn is_valid_integer(&self) -> bool
pub fn is_valid_integer(&self) -> boolpub fn is_valid_ip_address(&self) -> bool
pub fn is_valid_ip_address(&self) -> boolpub fn is_resource_file(&self) -> bool
pub fn is_resource_file(&self) -> boolpub fn is_absolute_path(&self) -> bool
pub fn is_absolute_path(&self) -> boolpub fn is_relative_path(&self) -> bool
pub fn is_relative_path(&self) -> boolpub fn to_f32(&self) -> f32
pub fn to_f32(&self) -> f32pub fn to_f64(&self) -> f64
pub fn to_f64(&self) -> f64pub fn to_i32(&self) -> i32
pub fn to_i32(&self) -> i32pub fn u32_hash(&self) -> u32
pub fn u32_hash(&self) -> u32pub fn u64_hash(&self) -> u64
pub fn u64_hash(&self) -> u64pub fn hex_to_int(&self) -> i32
pub fn hex_to_int(&self) -> i32pub fn hex_to_int_without_prefix(&self) -> i32
pub fn hex_to_int_without_prefix(&self) -> i32pub fn camelcase_to_underscore(&self) -> GodotString
pub fn camelcase_to_underscore(&self) -> GodotStringpub fn camelcase_to_underscore_lowercased(&self) -> GodotString
pub fn camelcase_to_underscore_lowercased(&self) -> GodotStringpub fn capitalize(&self) -> GodotString
pub fn capitalize(&self) -> GodotStringpub fn to_lowercase(&self) -> GodotString
pub fn to_lowercase(&self) -> GodotStringpub fn to_uppercase(&self) -> GodotString
pub fn to_uppercase(&self) -> GodotStringpub fn get_file(&self) -> GodotString
pub fn get_file(&self) -> GodotStringpub fn get_base_dir(&self) -> GodotString
pub fn get_base_dir(&self) -> GodotStringpub fn simplify_path(&self) -> GodotString
pub fn simplify_path(&self) -> GodotStringpub fn sha256_text(&self) -> GodotString
pub fn sha256_text(&self) -> GodotStringpub fn md5_text(&self) -> GodotString
pub fn md5_text(&self) -> GodotStringpub fn c_escape(&self) -> GodotString
pub fn c_escape(&self) -> GodotStringpub fn c_escape_multiline(&self) -> GodotString
pub fn c_escape_multiline(&self) -> GodotStringpub fn c_unescape(&self) -> GodotString
pub fn c_unescape(&self) -> GodotStringpub fn http_escape(&self) -> GodotString
pub fn http_escape(&self) -> GodotStringpub fn http_unescape(&self) -> GodotString
pub fn http_unescape(&self) -> GodotStringpub fn json_escape(&self) -> GodotString
pub fn json_escape(&self) -> GodotStringpub fn xml_escape(&self) -> GodotString
pub fn xml_escape(&self) -> GodotStringpub fn xml_escape_with_quotes(&self) -> GodotString
pub fn xml_escape_with_quotes(&self) -> GodotStringpub fn xml_unescape(&self) -> GodotString
pub fn xml_unescape(&self) -> GodotStringpub fn percent_decode(&self) -> GodotString
pub fn percent_decode(&self) -> GodotStringpub fn percent_encode(&self) -> GodotString
pub fn percent_encode(&self) -> GodotStringpub fn is_valid_hex_number(&self, with_prefix: bool) -> bool
pub fn is_valid_hex_number(&self, with_prefix: bool) -> boolpub fn begins_with(&self, s: &GodotString) -> bool
pub fn begins_with(&self, s: &GodotString) -> boolpub fn ends_with(&self, s: &GodotString) -> bool
pub fn ends_with(&self, s: &GodotString) -> boolpub fn begins_with_c_str(&self, s: &CStr) -> bool
pub fn begins_with_c_str(&self, s: &CStr) -> boolpub fn sub_string(&self, range: Range<usize>) -> GodotString
pub fn sub_string(&self, range: Range<usize>) -> GodotStringpub fn to_string(&self) -> String
pub fn to_string(&self) -> Stringpub fn find(&self, what: &GodotString) -> i32
pub fn find(&self, what: &GodotString) -> i32pub fn find_from(&self, what: &GodotString, from: i32) -> i32
pub fn find_from(&self, what: &GodotString, from: i32) -> i32pub fn find_last(&self, what: &GodotString) -> i32
pub fn find_last(&self, what: &GodotString) -> i32pub fn forget(self) -> godot_string
pub fn forget(self) -> godot_stringReturns the internal ffi representation of the string and consumes the rust object without running the destructor.
This should be only used when certain that the receiving side is responsible for running the destructor for the object, otherwise it is leaked.
pub fn to_sys(&self) -> godot_string
pub fn to_sys(&self) -> godot_stringReturns a copy of the internal ffi representation of the string.
The string remains owned by the rust wrapper and the receiver of the ffi representation should not run its destructor.
pub fn new_ref(&self) -> GodotString
pub fn new_ref(&self) -> GodotStringTrait Implementations
impl ToVariant for GodotString
impl ToVariant for GodotStringfn to_variant(&self) -> Variant
fn to_variant(&self) -> Variantfn from_variant(variant: &Variant) -> Option<GodotString>
fn from_variant(variant: &Variant) -> Option<GodotString>impl Debug for GodotString
impl Debug for GodotStringfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<S> From<S> for GodotString where
S: AsRef<str>,
impl<S> From<S> for GodotString where
S: AsRef<str>, fn from(s: S) -> GodotString
fn from(s: S) -> GodotStringPerforms the conversion.
impl<'l> From<&'l GodotString> for Variant
impl<'l> From<&'l GodotString> for Variantfn from(val: &'l GodotString) -> Variant
fn from(val: &'l GodotString) -> VariantPerforms the conversion.
impl Default for GodotString
impl Default for GodotStringfn default() -> GodotString
fn default() -> GodotStringReturns the "default value" for a type. Read more
impl Eq for GodotString
impl Eq for GodotStringimpl Drop for GodotString
impl Drop for GodotStringimpl PartialEq<GodotString> for GodotString
impl PartialEq<GodotString> for GodotStringAuto Trait Implementations
impl Send for GodotString
impl Send for GodotStringimpl Sync for GodotString
impl Sync for GodotString