fn try_from<S>(room_alias_id: S) -> Result<RoomAliasId, Error>
where
    S: AsRef<str> + Into<Box<str>>,
{
    let colon_idx = ruma_identifiers_validation::room_alias_id::validate(room_alias_id.as_ref())?;
    Ok(RoomAliasId { full_id: room_alias_id.into(), colon_idx })
}
/// Attempts to create a new Matrix room alias ID from a string representation.
///
/// The string must include the leading # sigil, the alias, a literal colon, and a server name.
Attempts to create a new Matrix room alias ID from a string representation.
The string must include the leading # sigil, the alias, a literal colon, and a server name.
Attempts to create a new Matrix room alias ID from a string representation . The string must include the leading # sigil the alias a literal colon and a server name .
fn try_from<S>(room_alias_id: S) -> Result<RoomAliasId, Error>
where
    S: AsRef<str> + Into<Box<str>>,
{
    let colon_idx = ruma_identifiers_validation::room_alias_id::validate(room_alias_id.as_ref())?;
    Ok(RoomAliasId { full_id: room_alias_id.into(), colon_idx })
}
fn try_from < S > ( room_alias_id : S ) -> Result < RoomAliasId , Error > where S : AsRef < str > + Into < Box < str > > , { let colon_idx = ruma_identifiers_validation :: room_alias_id :: validate ( room_alias_id . as_ref ( ) ) ? ; Ok ( RoomAliasId { full_id : room_alias_id . into ( ) , colon_idx } ) }
Attempts to create a new Matrix room alias ID from a string representation.
Attempts to create a new Matrix room alias ID from a string representation .
room_alias_id
S
room_alias_id
S