[][src]Function cetkaik_kiaak::body::parse_hand_creation

pub fn parse_hand_creation(s: &str) -> IResult<&str, HandCreation>
use cetkaik_kiaak::body::{parse_hand_creation, HandCreation};
use cetkaik_core::Profession;
use cetkaik_core::absolute::*;
use std::collections::HashSet;
use std::iter::FromIterator;
assert_eq!(
    parse_hand_creation("[SY]為(獣)(同色馬弓兵)"),
    Ok((
        "",
        HandCreation {
            player_name: String::from("SY"),
            hands: HashSet::from_iter(vec![String::from("獣"), String::from("同色馬弓兵")].into_iter())
        }
    ))
);