MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / as_vector

Method as_vector

src/system/str.rs:269–275  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

267 }
268
269 pub fn as_vector(&self) -> Vector<u8> {
270 let mut result = Vector::new();
271 for char in self.into_iter() {
272 result.push(char);
273 }
274 return result;
275 }
276
277 /// Returns an iterator of this Str instance.
278 pub fn into_iter(&self) -> StrIter {

Callers

nothing calls this directly

Calls 2

into_iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected