Struct gdnative_core::GodotString [−][src]
pub struct GodotString(_);
Godot's reference-counted string type.
Methods
impl GodotString[src]
impl GodotStringpub fn new() -> Self[src]
pub fn new() -> Selfpub fn from_str<S>(s: S) -> Self where
S: AsRef<str>, [src]
pub fn from_str<S>(s: S) -> Self where
S: AsRef<str>, pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizepub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolpub fn is_numeric(&self) -> bool[src]
pub fn is_numeric(&self) -> boolpub fn is_valid_float(&self) -> bool[src]
pub fn is_valid_float(&self) -> boolpub fn is_valid_html_color(&self) -> bool[src]
pub fn is_valid_html_color(&self) -> boolpub fn is_valid_identifier(&self) -> bool[src]
pub fn is_valid_identifier(&self) -> boolpub fn is_valid_integer(&self) -> bool[src]
pub fn is_valid_integer(&self) -> boolpub fn is_valid_ip_address(&self) -> bool[src]
pub fn is_valid_ip_address(&self) -> boolpub fn is_resource_file(&self) -> bool[src]
pub fn is_resource_file(&self) -> boolpub fn is_absolute_path(&self) -> bool[src]
pub fn is_absolute_path(&self) -> boolpub fn is_relative_path(&self) -> bool[src]
pub fn is_relative_path(&self) -> boolpub fn to_f32(&self) -> f32[src]
pub fn to_f32(&self) -> f32pub fn to_f64(&self) -> f64[src]
pub fn to_f64(&self) -> f64pub fn to_i32(&self) -> i32[src]
pub fn to_i32(&self) -> i32pub fn u32_hash(&self) -> u32[src]
pub fn u32_hash(&self) -> u32pub fn u64_hash(&self) -> u64[src]
pub fn u64_hash(&self) -> u64pub fn hex_to_int(&self) -> i32[src]
pub fn hex_to_int(&self) -> i32pub fn hex_to_int_without_prefix(&self) -> i32[src]
pub fn hex_to_int_without_prefix(&self) -> i32pub fn camelcase_to_underscore(&self) -> Self[src]
pub fn camelcase_to_underscore(&self) -> Selfpub fn camelcase_to_underscore_lowercased(&self) -> Self[src]
pub fn camelcase_to_underscore_lowercased(&self) -> Selfpub fn capitalize(&self) -> Self[src]
pub fn capitalize(&self) -> Selfpub fn to_lowercase(&self) -> Self[src]
pub fn to_lowercase(&self) -> Selfpub fn to_uppercase(&self) -> Self[src]
pub fn to_uppercase(&self) -> Selfpub fn get_file(&self) -> Self[src]
pub fn get_file(&self) -> Selfpub fn get_base_dir(&self) -> Self[src]
pub fn get_base_dir(&self) -> Selfpub fn simplify_path(&self) -> Self[src]
pub fn simplify_path(&self) -> Selfpub fn sha256_text(&self) -> Self[src]
pub fn sha256_text(&self) -> Selfpub fn md5_text(&self) -> Self[src]
pub fn md5_text(&self) -> Selfpub fn c_escape(&self) -> Self[src]
pub fn c_escape(&self) -> Selfpub fn c_escape_multiline(&self) -> Self[src]
pub fn c_escape_multiline(&self) -> Selfpub fn c_unescape(&self) -> Self[src]
pub fn c_unescape(&self) -> Selfpub fn http_escape(&self) -> Self[src]
pub fn http_escape(&self) -> Selfpub fn http_unescape(&self) -> Self[src]
pub fn http_unescape(&self) -> Selfpub fn json_escape(&self) -> Self[src]
pub fn json_escape(&self) -> Selfpub fn xml_escape(&self) -> Self[src]
pub fn xml_escape(&self) -> Selfpub fn xml_escape_with_quotes(&self) -> Self[src]
pub fn xml_escape_with_quotes(&self) -> Selfpub fn xml_unescape(&self) -> Self[src]
pub fn xml_unescape(&self) -> Selfpub fn percent_decode(&self) -> Self[src]
pub fn percent_decode(&self) -> Selfpub fn percent_encode(&self) -> Self[src]
pub fn percent_encode(&self) -> Selfpub fn is_valid_hex_number(&self, with_prefix: bool) -> bool[src]
pub fn is_valid_hex_number(&self, with_prefix: bool) -> boolpub fn begins_with(&self, s: &GodotString) -> bool[src]
pub fn begins_with(&self, s: &GodotString) -> boolpub fn ends_with(&self, s: &GodotString) -> bool[src]
pub fn ends_with(&self, s: &GodotString) -> boolpub fn begins_with_c_str(&self, s: &CStr) -> bool[src]
pub fn begins_with_c_str(&self, s: &CStr) -> boolpub fn sub_string(&self, range: Range<usize>) -> Self[src]
pub fn sub_string(&self, range: Range<usize>) -> Selfpub fn to_string(&self) -> String[src]
pub fn to_string(&self) -> Stringpub fn find(&self, what: &GodotString) -> i32[src]
pub fn find(&self, what: &GodotString) -> i32pub fn find_from(&self, what: &GodotString, from: i32) -> i32[src]
pub fn find_from(&self, what: &GodotString, from: i32) -> i32pub fn find_last(&self, what: &GodotString) -> i32[src]
pub fn find_last(&self, what: &GodotString) -> i32pub fn forget(self) -> godot_string[src]
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[src]
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[src]
pub fn new_ref(&self) -> GodotStringTrait Implementations
impl<'l> From<&'l GodotString> for Variant[src]
impl<'l> From<&'l GodotString> for Variantfn from(val: &'l GodotString) -> Variant[src]
fn from(val: &'l GodotString) -> VariantPerforms the conversion.
impl Drop for GodotString[src]
impl Drop for GodotStringimpl PartialEq for GodotString[src]
impl PartialEq for GodotStringfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for GodotString[src]
impl Eq for GodotStringimpl Default for GodotString[src]
impl Default for GodotStringimpl ToVariant for GodotString[src]
impl ToVariant for GodotStringfn to_variant(&self) -> Variant[src]
fn to_variant(&self) -> Variantfn from_variant(variant: &Variant) -> Option<Self>[src]
fn from_variant(variant: &Variant) -> Option<Self>impl Debug for GodotString[src]
impl Debug for GodotStringfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
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>, [src]
impl<S> From<S> for GodotString where
S: AsRef<str>, fn from(s: S) -> GodotString[src]
fn from(s: S) -> GodotStringPerforms the conversion.
Auto Trait Implementations
impl Send for GodotString
impl Send for GodotStringimpl Sync for GodotString
impl Sync for GodotString