[−][src]Function syntex_syntax2::parse::parse_item_from_source_str
pub fn parse_item_from_source_str(
name: String,
source: String,
sess: &ParseSess
) -> PResult<Option<P<Item>>>
Parses an item.
Returns Ok(Some(item))
when successful, Ok(None)
when no item was found, andErr
when a syntax error occurred.