yarns 0.1.0

Simple lib for working with strings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# yarns


A simple (beginner's) library for working with strings in rust. Built for ease, not speed.

## head

(&String) -> String

Borrows a string and returns the first character of it as a string.

## substr

(&String, usize, usize) -> String

Borrows a string and two usizes, and gives you the substring, from the index of the first number, with the length of the second.

## concat

(&String, &String) -> String

Borrows two strings and concatenates them.