pub enum FuncallName {
Upcase,
Downcase,
TitleCase,
Separate,
Unseparate,
Compose,
Decompose,
}Variants§
Implementations§
Source§impl FuncallName
impl FuncallName
pub fn from_name(name: &str) -> Option<FuncallName>
Sourcepub fn reverse_name(&self) -> Option<FuncallName>
pub fn reverse_name(&self) -> Option<FuncallName>
Interscript::Stdlib.reverse_function: the inverse funcall
used by Funcall#reverse. upcase has no entry (the Ruby map
omits it, so reversing an upcase funcall crashes there).
pub fn apply(&self, s: String, kwargs: &[(String, String)]) -> Result<String>
Trait Implementations§
Source§impl Clone for FuncallName
impl Clone for FuncallName
impl Copy for FuncallName
Source§impl Debug for FuncallName
impl Debug for FuncallName
impl Eq for FuncallName
Source§impl PartialEq for FuncallName
impl PartialEq for FuncallName
impl StructuralPartialEq for FuncallName
Auto Trait Implementations§
impl Freeze for FuncallName
impl RefUnwindSafe for FuncallName
impl Send for FuncallName
impl Sync for FuncallName
impl Unpin for FuncallName
impl UnsafeUnpin for FuncallName
impl UnwindSafe for FuncallName
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.