Struct gdnative::GodotString [−][src]
pub struct GodotString(_);
Godot's reference-counted string type.
Methods
impl GodotString
[src]
impl GodotString
pub fn new() -> Self
[src]
pub fn new() -> Self
pub 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) -> usize
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn is_numeric(&self) -> bool
[src]
pub fn is_numeric(&self) -> bool
pub fn is_valid_float(&self) -> bool
[src]
pub fn is_valid_float(&self) -> bool
pub fn is_valid_html_color(&self) -> bool
[src]
pub fn is_valid_html_color(&self) -> bool
pub fn is_valid_identifier(&self) -> bool
[src]
pub fn is_valid_identifier(&self) -> bool
pub fn is_valid_integer(&self) -> bool
[src]
pub fn is_valid_integer(&self) -> bool
pub fn is_valid_ip_address(&self) -> bool
[src]
pub fn is_valid_ip_address(&self) -> bool
pub fn is_resource_file(&self) -> bool
[src]
pub fn is_resource_file(&self) -> bool
pub fn is_absolute_path(&self) -> bool
[src]
pub fn is_absolute_path(&self) -> bool
pub fn is_relative_path(&self) -> bool
[src]
pub fn is_relative_path(&self) -> bool
pub fn to_f32(&self) -> f32
[src]
pub fn to_f32(&self) -> f32
pub fn to_f64(&self) -> f64
[src]
pub fn to_f64(&self) -> f64
pub fn to_i32(&self) -> i32
[src]
pub fn to_i32(&self) -> i32
pub fn u32_hash(&self) -> u32
[src]
pub fn u32_hash(&self) -> u32
pub fn u64_hash(&self) -> u64
[src]
pub fn u64_hash(&self) -> u64
pub fn hex_to_int(&self) -> i32
[src]
pub fn hex_to_int(&self) -> i32
pub fn hex_to_int_without_prefix(&self) -> i32
[src]
pub fn hex_to_int_without_prefix(&self) -> i32
pub fn camelcase_to_underscore(&self) -> Self
[src]
pub fn camelcase_to_underscore(&self) -> Self
pub fn camelcase_to_underscore_lowercased(&self) -> Self
[src]
pub fn camelcase_to_underscore_lowercased(&self) -> Self
pub fn capitalize(&self) -> Self
[src]
pub fn capitalize(&self) -> Self
pub fn to_lowercase(&self) -> Self
[src]
pub fn to_lowercase(&self) -> Self
pub fn to_uppercase(&self) -> Self
[src]
pub fn to_uppercase(&self) -> Self
pub fn get_file(&self) -> Self
[src]
pub fn get_file(&self) -> Self
pub fn get_base_dir(&self) -> Self
[src]
pub fn get_base_dir(&self) -> Self
pub fn simplify_path(&self) -> Self
[src]
pub fn simplify_path(&self) -> Self
pub fn sha256_text(&self) -> Self
[src]
pub fn sha256_text(&self) -> Self
pub fn md5_text(&self) -> Self
[src]
pub fn md5_text(&self) -> Self
pub fn c_escape(&self) -> Self
[src]
pub fn c_escape(&self) -> Self
pub fn c_escape_multiline(&self) -> Self
[src]
pub fn c_escape_multiline(&self) -> Self
pub fn c_unescape(&self) -> Self
[src]
pub fn c_unescape(&self) -> Self
pub fn http_escape(&self) -> Self
[src]
pub fn http_escape(&self) -> Self
pub fn http_unescape(&self) -> Self
[src]
pub fn http_unescape(&self) -> Self
pub fn json_escape(&self) -> Self
[src]
pub fn json_escape(&self) -> Self
pub fn xml_escape(&self) -> Self
[src]
pub fn xml_escape(&self) -> Self
pub fn xml_escape_with_quotes(&self) -> Self
[src]
pub fn xml_escape_with_quotes(&self) -> Self
pub fn xml_unescape(&self) -> Self
[src]
pub fn xml_unescape(&self) -> Self
pub fn percent_decode(&self) -> Self
[src]
pub fn percent_decode(&self) -> Self
pub fn percent_encode(&self) -> Self
[src]
pub fn percent_encode(&self) -> Self
pub fn is_valid_hex_number(&self, with_prefix: bool) -> bool
[src]
pub fn is_valid_hex_number(&self, with_prefix: bool) -> bool
pub fn begins_with(&self, s: &GodotString) -> bool
[src]
pub fn begins_with(&self, s: &GodotString) -> bool
pub fn ends_with(&self, s: &GodotString) -> bool
[src]
pub fn ends_with(&self, s: &GodotString) -> bool
pub fn begins_with_c_str(&self, s: &CStr) -> bool
[src]
pub fn begins_with_c_str(&self, s: &CStr) -> bool
pub fn sub_string(&self, range: Range<usize>) -> Self
[src]
pub fn sub_string(&self, range: Range<usize>) -> Self
pub fn to_utf8(&self) -> Utf8String
[src]
pub fn to_utf8(&self) -> Utf8String
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
pub fn find(&self, what: &GodotString) -> i32
[src]
pub fn find(&self, what: &GodotString) -> i32
pub fn find_from(&self, what: &GodotString, from: i32) -> i32
[src]
pub fn find_from(&self, what: &GodotString, from: i32) -> i32
pub fn find_last(&self, what: &GodotString) -> i32
[src]
pub fn find_last(&self, what: &GodotString) -> i32
pub fn forget(self) -> godot_string
[src]
pub fn forget(self) -> godot_string
Returns 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_string
Returns 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) -> GodotString
Trait Implementations
impl<'l> From<&'l GodotString> for Variant
[src]
impl<'l> From<&'l GodotString> for Variant
fn from(val: &'l GodotString) -> Variant
[src]
fn from(val: &'l GodotString) -> Variant
Performs the conversion.
impl Drop for GodotString
[src]
impl Drop for GodotString
impl PartialEq for GodotString
[src]
impl PartialEq for GodotString
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for GodotString
[src]
impl Eq for GodotString
impl Default for GodotString
[src]
impl Default for GodotString
impl GodotType for GodotString
[src]
impl GodotType for GodotString
fn to_variant(&self) -> Variant
[src]
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
[src]
fn from_variant(variant: &Variant) -> Option<Self>
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
[src]
fn from_sys_variant(variant: &godot_variant) -> Option<Self>
impl Debug for GodotString
[src]
impl Debug for GodotString
Auto Trait Implementations
impl Send for GodotString
impl Send for GodotString
impl Sync for GodotString
impl Sync for GodotString