Skip to content

std::String::slice<Char, Traits>::subslice

subslice

Creates a view into a portion of the slice, vital for safe substring operations

Signature

subslice(self, pos: usize, len: usize) -> slice

Specifiers

  • const
  • noexcept

Attributes

  • nodiscard

See Also

Back to slice<Char, Traits>