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