[−][src]Struct gdnative::common::GodotString
Godot's reference-counted string type.
Methods
impl GodotString
[src]
impl GodotString
pub fn new() -> GodotString | [src] |
pub fn from_str<S>(s: S) -> GodotString where | [src] |
pub fn len(&self) -> usize | [src] |
pub fn is_empty(&self) -> bool | [src] |
pub fn is_numeric(&self) -> bool | [src] |
pub fn is_valid_float(&self) -> bool | [src] |
pub fn is_valid_html_color(&self) -> bool | [src] |
pub fn is_valid_identifier(&self) -> bool | [src] |
pub fn is_valid_integer(&self) -> bool | [src] |
pub fn is_valid_ip_address(&self) -> bool | [src] |
pub fn is_resource_file(&self) -> bool | [src] |
pub fn is_absolute_path(&self) -> bool | [src] |
pub fn is_relative_path(&self) -> bool | [src] |
pub fn to_f32(&self) -> f32 | [src] |
pub fn to_f64(&self) -> f64 | [src] |
pub fn to_i32(&self) -> i32 | [src] |
pub fn u32_hash(&self) -> u32 | [src] |
pub fn u64_hash(&self) -> u64 | [src] |
pub fn hex_to_int(&self) -> i32 | [src] |
pub fn hex_to_int_without_prefix(&self) -> i32 | [src] |
pub fn camelcase_to_underscore(&self) -> GodotString | [src] |
pub fn camelcase_to_underscore_lowercased(&self) -> GodotString | [src] |
pub fn capitalize(&self) -> GodotString | [src] |
pub fn to_lowercase(&self) -> GodotString | [src] |
pub fn to_uppercase(&self) -> GodotString | [src] |
pub fn get_file(&self) -> GodotString | [src] |
pub fn get_base_dir(&self) -> GodotString | [src] |
pub fn simplify_path(&self) -> GodotString | [src] |
pub fn sha256_text(&self) -> GodotString | [src] |
pub fn md5_text(&self) -> GodotString | [src] |
pub fn c_escape(&self) -> GodotString | [src] |
pub fn c_escape_multiline(&self) -> GodotString | [src] |
pub fn c_unescape(&self) -> GodotString | [src] |
pub fn http_escape(&self) -> GodotString | [src] |
pub fn http_unescape(&self) -> GodotString | [src] |
pub fn json_escape(&self) -> GodotString | [src] |
pub fn xml_escape(&self) -> GodotString | [src] |
pub fn xml_escape_with_quotes(&self) -> GodotString | [src] |
pub fn xml_unescape(&self) -> GodotString | [src] |
pub fn percent_decode(&self) -> GodotString | [src] |
pub fn percent_encode(&self) -> GodotString | [src] |
pub fn is_valid_hex_number(&self, with_prefix: bool) -> bool | [src] |
pub fn begins_with(&self, s: &GodotString) -> bool | [src] |
pub fn ends_with(&self, s: &GodotString) -> bool | [src] |
pub fn begins_with_c_str(&self, s: &CStr) -> bool | [src] |
pub fn sub_string(&self, range: Range<usize>) -> GodotString | [src] |
pub fn to_string(&self) -> String | [src] |
pub fn find(&self, what: &GodotString) -> i32 | [src] |
pub fn find_from(&self, what: &GodotString, from: i32) -> i32 | [src] |
pub fn find_last(&self, what: &GodotString) -> i32 | [src] |
pub fn forget(self) -> godot_string | [src] |
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] |
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] |
Trait Implementations
impl Into<GodotString> for NodePath
[src]
impl Into<GodotString> for NodePath
fn into(self) -> GodotString | [src] |
impl Eq for GodotString
[src]
impl Eq for GodotString
impl From<GodotString> for NodePath
[src]
impl From<GodotString> for NodePath
fn from(s: GodotString) -> NodePath | [src] |
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] |
impl<'l> From<&'l GodotString> for Variant
[src]
impl<'l> From<&'l GodotString> for Variant
fn from(val: &'l GodotString) -> Variant | [src] |
impl Debug for GodotString
[src]
impl Debug for GodotString
impl Drop for GodotString
[src]
impl Drop for GodotString
impl Default for GodotString
[src]
impl Default for GodotString
fn default() -> GodotString | [src] |
impl PartialEq<GodotString> for GodotString
[src]
impl PartialEq<GodotString> for GodotString
fn eq(&self, other: &GodotString) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl ToVariant for GodotString
[src]
impl ToVariant for GodotString
fn to_variant(&self) -> Variant | [src] |
fn from_variant(variant: &Variant) -> Option<GodotString> | [src] |
Auto Trait Implementations
impl Send for GodotString
impl Send for GodotString
impl Sync for GodotString
impl Sync for GodotString
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |