csv.rs |
|
1070 |
entity.rs |
/// Constructs a new EntityTag.
/// # Panics
/// If the tag contains invalid characters.
pub fn new(weak: bool, tag: String) -> EntityTag {
assert!(check_slice_validity(&tag), "Invalid tag: {:?}", tag);
EntityTag { weak: weak, tag: tag }
}
/// Constructs a new weak EntityTag.
/// # Panics
/// If the tag contains invalid characters.
pub fn weak(tag: String) -> EntityTag {
EntityTag::new(true, tag)
}
/// Constructs a new strong EntityTag.
/// # Panics
/// If the tag contains invalid characters.
pub fn strong(tag: String) -> EntityTag {
EntityTag::new(false, tag)
}
|
10771 |
flat_csv.rs |
|
5599 |
fmt.rs |
|
293 |
http_date.rs |
|
4046 |
iter.rs |
|
255 |
mod.rs |
|
2471 |
seconds.rs |
|
1505 |
value_string.rs |
|
2571 |