MCPcopy Create free account
hub / github.com/ZettaScaleLabs/stabby / partial_cmp

Method partial_cmp

stabby-abi/src/alloc/string.rs:124–126  ·  view source on GitHub ↗
(&self, other: &Rhs)

Source from the content-addressed store, hash-verified

122impl<Alloc: IAlloc> Eq for String<Alloc> {}
123impl<Alloc: IAlloc, Rhs: AsRef<str>> PartialOrd<Rhs> for String<Alloc> {
124 fn partial_cmp(&self, other: &Rhs) -> Option<core::cmp::Ordering> {
125 self.as_str().partial_cmp(other.as_ref())
126 }
127}
128impl<Alloc: IAlloc> Ord for String<Alloc> {
129 fn cmp(&self, other: &Self) -> core::cmp::Ordering {

Callers

nothing calls this directly

Calls 3

as_strMethod · 0.45
as_refMethod · 0.45
cmpMethod · 0.45

Tested by

no test coverage detected