String Type
Scalar Types aka native Types.
StringType
Native String.
Example:
import ucdp as u example = u.StringType() example StringType() example = u.StringType(default='data') example StringType(default='data') example[1:3] StringType(default='at')
is_connectable
Check For Valid Connection To other.
Connections are only allowed to other :any:StringType.
The default and isolation value have no influence.
import ucdp as u u.StringType().is_connectable(u.StringType()) True
A connection to other types is forbidden.
u.StringType().is_connectable(u.UintType(1)) False