pub struct GodotString {
pub value: String,
pub byte_size: usize,
}Expand description
A String from godot
Fields§
§value: String§byte_size: usizeImplementations§
Trait Implementations§
Source§impl Clone for GodotString
impl Clone for GodotString
Source§fn clone(&self) -> GodotString
fn clone(&self) -> GodotString
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GodotString
impl Debug for GodotString
Source§impl GodotVariant for GodotString
impl GodotVariant for GodotString
Source§fn byte_length(&self) -> usize
fn byte_length(&self) -> usize
Describes the byte length of a variant, most primitive variants have a static byte length.
However some variants like a dictionary may have dynamic sizes
Source§fn variant_eq(&self, other: &dyn GodotVariant) -> bool
fn variant_eq(&self, other: &dyn GodotVariant) -> bool
Checks if a variant is equal to another variant
Source§impl Hash for GodotString
impl Hash for GodotString
Source§impl PartialEq for GodotString
impl PartialEq for GodotString
impl Eq for GodotString
impl StructuralPartialEq for GodotString
Auto Trait Implementations§
impl Freeze for GodotString
impl RefUnwindSafe for GodotString
impl Send for GodotString
impl Sync for GodotString
impl Unpin for GodotString
impl UnwindSafe for GodotString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.