pub fn is_empty(&self) -> bool {
        match *self {
            Text(ref string) => string.is_empty(),
            Binary(ref data) => data.is_empty(),
        }
    }
/// Returns true if the Socket message has no content.
/// For example, if the other side of the connection sent an empty string.
Returns true if the Socket message has no content.
For example, if the other side of the connection sent an empty string.
Returns true if the Socket message has no content . For example if the other side of the connection sent an empty string .
pub fn is_empty(&self) -> bool {
        match *self {
            Text(ref string) => string.is_empty(),
            Binary(ref data) => data.is_empty(),
        }
    }
pub fn is_empty ( & self ) -> bool { match * self { Text ( ref string ) => string . is_empty ( ) , Binary ( ref data ) => data . is_empty ( ) , } }
Returns true if the Socket message has no content.
Returns true if the Socket message has no content .
&self
&self